Does the MD5 algorithm always generate the same output for the same string?

Yes, otherwise MD5 would be useless for things like file verification. What reason would you have for non deterministic output?

Up vote 2 down vote favorite 1 share g+ share fb share tw.

Hash md5 link|improve this question asked Dec 4 '10 at 15:56vfclists9151816 62% accept rate.

It seems like you want another behavior for some reason. – Scott Stafford Dec 4 '10 at 15:59 It is a deterministic algorithm. How could it do otherwise?

– GregS Dec 4 '10 at 23:11 I am unfamiliar with the differences between cryptography and hashing. I think also had it mixed up RC5 – vfclists Dec 4 '10 at 23:48.

Yes, a hash algorithm always produces the same output. If you use the same salt, this will also always produce the same output for a given input.

Yes, MD5 always outputs the same given the same input. That's how it's used for passwords. You store the hash in the database, then when the user types their password in, it's hashed again and the two hashes are compared.

Yes. MD5 is a hash function. This does not mean that an MD5 is unique.

Multiple inputs could map to the same hash, but any given input has only one hash.

Yes MD5 is deterministic, and this is considered a desirable characteristic for many applications of message digest functions. As for using a salt, by that you really mean 'changing the input string in some subtle way' don't you? And, of course, it is also a desirable characteristic of message digests that they produce (with very high probability) a different digest for a different message.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions