Recently noticed a service ( http://finder.insidepro.team is not an advertisement) there you enter a hash, and it determines the type and brutes itself. Who knows, is it possible to somehow determine the type in PHP?
1 answer
What is there to define something? Measured the length of the string and determined everything:
- MD5 is 128 bits (16 bytes).
- SHA-1 - 160 bits (20 bytes).
- SHA-256 - 256 bits (32 bytes).
- SHA-512 - 512 bits (64 bytes).
But we must understand that, in fact, it is impossible to determine the algorithm exactly by hash. There are different hashes with the same length. For example, MD3 and MD4 also have a length of 128 bits. They are simply not used. Or, for example, the acclaimed GOST Stribog has a length of 256 or 512 bits and cannot be distinguished from SHA-256/512.
- Or maybe it's not SHA-256, but Stribog? =) - Alexey Ten
- @AlexeyTen Damn. Well then no way :) - Enikeyschik
- I need to define MD5 hashes of different types, and SHA256 different types. Can I somehow? - Maksim Neisy 5:42 pm
- @MaksimNeisy what do different types mean? Sha-256 one. But, as mentioned above, two different hashing algorithms with the same length are fundamentally indistinguishable. Those. only by the result of hashing without any additional information nothing definite can be said. - Alexey Ten
- That means md5 ($ pass. $ Salt) md5 ($ salt. $ Pass) md5 (md5 ($ pass)) md5 (md5 ($ pass). $ Salt) md5 ($ salt.md5 ($ pass)) md5 ( $ salt. $ pass. $ salt) md5 (md5 ($ salt). $ pass) md5 (md5 ($ salt) .md5 ($ pass)), etc. - Maksim Neisy pm
|