Check out example codes for "md5 encryption for existing records". It will help you in understanding the concepts better.

Code Example 1

UPDATE yourtable
SET hash = MD5(name)
WHERE hash IS NULL

Learn ReactJs, React Native from akashmittal.com