How to find out which encryption/hashing method is used
How to find out which encryp开发者_运维知识库tion/hashing method is used. I have the original password text and its encrypted form,following are the password and its encrypted forms:
Password1 - 2ac9cb7dc02b3c083eb70898e549b63
Newtestpassword1 - 4a43ab1ef64544e13d1c8f03bad63f4
How to identify that which encryption/hashing method is used?
Does anyone have any idea?
Those are a single, unsalted iteration of MD5, each with a single (but different) hex digit missing:
MD5("Password1") = 2ac9cb7dc02b3c0083eb70898e549b63
MD5("Newtestpassword1") = 4a43ab1ef64544e103d1c8f03bad63f4
Either you have transcribed them incorrectly, or the algorithm is deliberately dropping 4 bits from near the middle of the hash.
Best practices using hash include some salt in it. So, you can calculate the hash using all the hashes you know (like MD5, SHA1), but you can only discover how it ws generated if you guess:
- how many times it was runned, like how many interactions it had;
- the salt that was used, where it was inserted (beginning? middle? end?), if it was used in every interaction...
So, if it was done correctly, you won't be able to guess it in a resonable time.
精彩评论