Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to decrypt a string

How to restore the value of a string after using FormsAuthentication.HashPasswordForStoringInConfigFile()

i have a string s1 = "abc" then

FormsAuthentication.HashPasswordForStoringInConfigFile(s1, "SHA1") = A9993E364706816ABA3E25717850C26C9CD0D89D

How can i decrypt "A9993E364706816ABA3E25717850C26C9CD0D89D" back to "abc"??

like image 569
Avinash Avatar asked Oct 31 '09 09:10

Avinash


1 Answers

You Can't, Hash Function are one way functions. this is why it is used for passwords, because that you can't get the password using some reverse function on the hash value.

like image 147
Baget Avatar answered Oct 12 '22 12:10

Baget