943,447 Members | Top Members by Rank

Ad:
Mar 4th, 2004
0

Md5 - Wtf?

Expand Post »
I've been looking at the text written by professor Rivest, and I REALLY do not understand the MD5 algorithm.

It produces a 32 bit encryption.. so its 32 characters, no matter what. But you can hash a string with an unlimited amount of characters... But if you do the math, only 9,472,710,129,612,967,086,019,848,437,700,000,000 possible combinations of alphanumeric characters in a 32 bit (character) hash is possible. So how can it account for the rest of the combinations of letters and numbers that you can encrypt?

Quote ...
Math Equation for possible strings produced by MD5: 32! * 36
That being "(32 x 31 x 30 x 29 x 28 x 27 x 26 x 25 x 24 x 23 x 22 x 21 x 20 x 19 x 18 x 17 x 16 x 15 x 14 x 13 x 12 x 11 x 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1) * (26 + 10)". 26 letters (A-Z) and 10 numbers (0-9) producable by MD5.

WTF?
Reputation Points: 12
Solved Threads: 3
Posting Whiz in Training
rixius is offline Offline
212 posts
since Nov 2003
Mar 4th, 2004
0

Re: Md5 - Wtf?

You forgot to include (a-z) for a total of 52 letters.
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Mar 5th, 2004
0

Re: Md5 - Wtf?

Well.. I just used a-z generically, I didn't know they could be cap'd or not. I thought it just produced them in lowercase.
Reputation Points: 12
Solved Threads: 3
Posting Whiz in Training
rixius is offline Offline
212 posts
since Nov 2003
Mar 5th, 2004
0

Re: Md5 - Wtf?

It only produces letters in lowercase, but it uses uppercase letters as part of the algorithm.
Reputation Points: 128
Solved Threads: 8
Posting Whiz
TheOgre is offline Offline
390 posts
since Aug 2003
Mar 5th, 2004
0

Re: Md5 - Wtf?

It's NOT encryption. It's a hash. That means that it's not mathematically possible to decrypt an md5() encoded string. MD5() is designed to be a secure way of storting data for authentication, not for encryption. So, yes, a few times the same hash will come up for more than one string. But it's highly unlikely that you'll find more than one, and they would have to be so drastically different that they'd never be used in the same context anyway.
Team Colleague
Reputation Points: 63
Solved Threads: 6
Supreme Evil Overlord
Roberdin is offline Offline
282 posts
since Feb 2003
Mar 5th, 2004
0

Re: Md5 - Wtf?

Ahh okay. I'm new to this sort of thing, Thanks for making it more clear to me.
Reputation Points: 12
Solved Threads: 3
Posting Whiz in Training
rixius is offline Offline
212 posts
since Nov 2003
Mar 26th, 2004
0

Re: Md5 - Wtf?

I made a program that implemented the MD5 hash for files if you would like to view it?
Reputation Points: 28
Solved Threads: 9
Posting Whiz in Training
BountyX is offline Offline
222 posts
since Mar 2004
Oct 6th, 2004
0

Re: Md5 - Wtf?

Quote originally posted by rixius ...
only 9,472,710,129,612,967,086,019,848,437,700,000,000 possible combinations...
lmao.

Might I just bring this down to earth a bit and ask if you don't think that many bafrickingzillion possible distinct hashes will be ENOUGH??
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Nuez_Jr is offline Offline
18 posts
since Oct 2004
Dec 13th, 2006
0

Re: Md5 - Wtf?

Click to Expand / Collapse  Quote originally posted by Nuez_Jr ...
lmao.

Might I just bring this down to earth a bit and ask if you don't think that many bafrickingzillion possible distinct hashes will be ENOUGH??

and I'd like to see him store that number in an integer:mrgreen:
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,942 posts
since Aug 2005
Dec 15th, 2006
0

Re: Md5 - Wtf?

and I'd like to see him store that number in an integer:mrgreen:
You'd need a plugin module like BigfrickinNum from CodefrackingSpace.foo
Moderator
Reputation Points: 3275
Solved Threads: 889
Posting Sage
WaltP is offline Offline
7,708 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Computer Science Forum Timeline: Need very important advice from professionals
Next Thread in Computer Science Forum Timeline: CS research





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC