DBookatay Posted November 6, 2007 Share Posted November 6, 2007 I am setting up a registration form that has password fields. I set up the field with a maxlength of 20 characters and am encrypting the entry using MD5. Question is, if a password is the entire 20 characters, what length should I set my VARCHAR input in the dB? How many alphanumeric characters are returned in MD5 for 1 "normal" character? Link to comment https://forums.phpfreaks.com/topic/76162-solved-question-about-md5-passwords/ Share on other sites More sharing options...
PHP_PhREEEk Posted November 6, 2007 Share Posted November 6, 2007 http://en.wikipedia.org/wiki/MD5 32 characters, typically, regardless of input string. Most of the fields I work with set the VARCHAR to 40 chars. PhREEEk Link to comment https://forums.phpfreaks.com/topic/76162-solved-question-about-md5-passwords/#findComment-385469 Share on other sites More sharing options...
DBookatay Posted November 6, 2007 Author Share Posted November 6, 2007 http://en.wikipedia.org/wiki/MD5 32 characters, typically, regardless of input string. Most of the fields I work with set the VARCHAR to 40 chars. PhREEEk Thanks for the help, and the article... Link to comment https://forums.phpfreaks.com/topic/76162-solved-question-about-md5-passwords/#findComment-385471 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.