abc cba
abc cba

Reputation: 2633

What way to change Hash back to it string in c#

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

Answers (1)

Mihai Caracostea
Mihai Caracostea

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

Related Questions