View Full Version : Resolved md5 Info
12-17-2008, 07:27 AM
Is there like a chart somewhere that shows how long a string becomes after performing md5() on it, based on the length of the original string?
12-17-2008, 07:45 AM
Check the manual
Returns the hash as a 32-character hexadecimal number.
12-17-2008, 07:55 AM
I'm sorry, didn't see that when I checked the manual. So the length will always be 32 characters?
12-17-2008, 08:14 AM
Yes, it will always be 32 characters in length.
12-17-2008, 08:26 AM
So would a user registration form that had it's password input maxlength property set to 20, and the password field in the MySQL table set to varchar with a length of 32 work?
Sorry about all the questions. I messed up my login script tonight, and it took me awhile to figure out it was because I had changed the password length in the database.
12-17-2008, 08:30 AM
So would a user registration form that had it's password input maxlength property set to 20, and the password field in the MySQL table set to varchar with a length of 32 work? Yes, the output character length is independent of the input character length.
12-19-2008, 02:52 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.