PHP_Joker Posted July 27, 2003 Share Posted July 27, 2003 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 More sharing options...
effigy Posted July 28, 2003 Share Posted July 28, 2003 that sql will work. you need to alter that table column to hold a larger number of characters. Link to comment https://forums.phpfreaks.com/topic/790-converting-column-to-md5-hash/#findComment-2613 Share on other sites More sharing options...
PHP_Joker Posted July 28, 2003 Author Share Posted July 28, 2003 Thank you for pointing out an obvious oversight on my part effigy! I will get the hang of this eventually! Thanks Again! Link to comment https://forums.phpfreaks.com/topic/790-converting-column-to-md5-hash/#findComment-2615 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.