我已經使用SHA1使用下面的代碼加密了一個字符串(hello)。請指導我解密這個字符串。如何解密sha1加密字符串C#
SHA1Managed sha1 = new SHA1Managed();
byte[] hash = sha1.ComputeHash(Encoding.UTF8.GetBytes("hello"));
StringBuilder sb = new StringBuilder(hash.Length * 2);
foreach(byte b in hash)
{
sb.Append(b.ToString("x2"));
}
string result = sb.ToString();
在網上搜索時,我沒有發現使用SHA1解密,即使在MSDN中。請引導我。
考慮做什麼SHA1一個小小的研究,一般什麼樣的散列函數** **被和啥子它們用於。 – zaph