Reputation: 2633
I am writing a part of code to change string into hash
String hash = GetHashString("A"); //return 7FC56270E7A70FA81A5935B72EACBE29
My question is how can I get back "A" when I pass in the hash code ?
7FC56270E7A70FA81A5935B72EACBE29
Upvotes: 0
Views: 1741
Reputation: 8466
Hashes are not meant to be reversible. If you want to compare its origin with another string, just hash the second one too and then compare their hashes.
Upvotes: 1