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! Quote Link to comment 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. Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.