You cannot convert hash back to the string from which you calculated the hash.
If you want this, you need to compare the hash with each hash of the target string.
If one of them matches a hash, then this hash comes from the target string.
Use: If you want to store passwords in a database , you can store your hashes instead of passwords. So even if a hacker gains access to your database, he cannot get a password because he hashed. The only way to find out the line through which we created the hash is to match with the desired line!
Anirudha
source share