hashing problems[SOLVED, thanks]

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Typically, but not always, md5 results in a 32 character string regardless of what was passed to it.
toby_c500
Forum Commoner
Posts: 50
Joined: Fri May 11, 2007 11:29 am
Location: Leeds, England

Post by toby_c500 »

Cool, thanks Everah.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Everah wrote:Typically, but not always, md5 results in a 32 character string regardless of what was passed to it.
When would a md5 hash not result in 32 char?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The size of the output can be set to 20 character, 32 character or 40 character depending on some factors. I just read that a few weeks ago. If I can find out where, I will post the link.

PS I asked that same exact question you just asked by the way.
Post Reply