Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to find out which hash algorithm was used in these strings?

Tags:

algorithm

hash

I don't want to reverse it. I just want to be sure what hash algorithm was used on these strings (I'm not sure if it's md5):

d27918bcc2a8562dc4549c2c00111e66
889f071e04755db26579a19f4303654e
47a21a13ee822c1450155bd0033b0f1d

Is there a way to do it?

One of the source for the strings above is certainly: '9915757678'

like image 773
Acacio Nerull Avatar asked Aug 01 '10 16:08

Acacio Nerull


People also ask

How do you find the hash of a string?

Getting the hash code of a string is simple in C#. We use the GetHashCode() method. A hash code is a uniquely identified numerical value. Note that strings that have the same value have the same hash code.

In which string algorithm hash function is used?

One of the most famous applications of hashing is the Rabin-Karp algorithm. This is basically a string-searching algorithm which uses hashing to find any one set of patterns in a string.

What hashing algorithm was used?

Some common hashing algorithms include MD5, SHA-1, SHA-2, NTLM, and LANMAN. MD5: This is the fifth version of the Message Digest algorithm. MD5 creates 128-bit outputs. MD5 was a very commonly used hashing algorithm.

What is my hash algorithm?

Hashing algorithms are functions that generate a fixed-length result (the hash, or hash value) from a given input. The hash value is a summary of the original data. For instance, think of a paper document that you keep crumpling to a point where you aren't even able to read its content anymore.


2 Answers

They're each 32 characters, so 128 bits. So it could be MD5.

However, there is no way to tell. Any hash function worth its salt will spread the hash values evenly throughout the entire output space, so if you have just a bunch of outputs, there's no way to tell hash functions apart.

Unless you can make some reasonable guesses about the input, and do some brute-forcing, of course.

like image 143
Thomas Avatar answered Oct 11 '22 14:10

Thomas


It fits MD5() hash form (length-wise) but it could be just as well SHA1 hash stored in CHAR(32) field. As others have said - unless you have an example of input value. Then you could use a tool like this: http://www.insidepro.com/hashes.php to generate hashes using several diffrent algorithms and try to find if any one fits.

You're even more out of luck, if there was salt added before hashing.

like image 41
Mchl Avatar answered Oct 11 '22 15:10

Mchl