civalo Posted February 19, 2003 Share Posted February 19, 2003 I have a membership database created using mysql that is based on the tutorial on this site. Everything seems to be right, however, mysql is dropping the last 1 or 2 characters of the encrypted passwords. At first i figured that the VarChar field was not large enough set at 30, and felt kinda dense...lol....so i set it to 50....still dropping them..... then i figured it was my script, but it drops them even if entered directly in Mysql...... Any suggestions would be helpful.....if you like...the site is at http://12.224.177.157/index2.html Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/168-losing-last-1-or-2-characters-in-md5-encrypted-passwords/ Share on other sites More sharing options...
benW Posted March 1, 2003 Share Posted March 1, 2003 Try using BLOB or TEXT instead of VARCHAR Quote Link to comment https://forums.phpfreaks.com/topic/168-losing-last-1-or-2-characters-in-md5-encrypted-passwords/#findComment-554 Share on other sites More sharing options...
sohaibshaheen Posted August 29, 2010 Share Posted August 29, 2010 Md5 string is 128 bits long.... Quote Link to comment https://forums.phpfreaks.com/topic/168-losing-last-1-or-2-characters-in-md5-encrypted-passwords/#findComment-1104795 Share on other sites More sharing options...
Pikachu2000 Posted August 29, 2010 Share Posted August 29, 2010 Try using BLOB or TEXT instead of VARCHAR It's a 32 character hexidecimal string. Store it as CHAR(32), if you must use MD5. You'd be better off using something stronger, with a salt, though. Quote Link to comment https://forums.phpfreaks.com/topic/168-losing-last-1-or-2-characters-in-md5-encrypted-passwords/#findComment-1104893 Share on other sites More sharing options...
fenway Posted August 30, 2010 Share Posted August 30, 2010 Try using BLOB or TEXT instead of VARCHAR That's a terrible idea -- performance hell. Quote Link to comment https://forums.phpfreaks.com/topic/168-losing-last-1-or-2-characters-in-md5-encrypted-passwords/#findComment-1105226 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.