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? Quote Link to comment 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 Quote Link to comment 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... 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.