md5 encryption for existing records
snippet in sql

md5 encryption for existing records

user2860

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