tags:

views:

87

answers:

2

Hi, i want to know if exist a way to differentiate a md5 hashcode of a sha-1 hashcode?

For example:

d41d8cd98f00b204e9800998ecf8427e

da39a3ee5e6b4b0d3255bfef95601890afd80709

How i could to know which are encrypted in md5 and wich not? Is it possible?

+9  A: 

I'm not quite sure if this is what you're asking, but MD5 is 128 bits/32 hex digits, while SHA-1 is 160 bits/40 hex digits, so it's fairly easy to tell the difference between them (providing, of course, that you know that your hashes will be either MD5 or SHA-1 and not something else).

(If you're asking whether you can determine if a given MD5 hash is a hash of a hash or a hash of some other data, then I believe the answer is "no".)

Wevah
+3  A: 

MD5 gives a 128-bit hash value.

SHA-1 gives a 160-bit hash value.

Robert