Jump to content

Converting column to MD5 Hash


PHP_Joker

Recommended Posts

Hi all,

 

I want to convert my existing SQL password column (currently in text) to MD5. Anyone have a trick for this? I tried a code I thought would work, but it doesn\'t give me enough characters in the new MD5 password.

 

Here is the code I used:

 

update mytable

set mycolumn = md5(mycolumn);

 

Thanks for your help!

Link to comment
https://forums.phpfreaks.com/topic/790-converting-column-to-md5-hash/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.