有关UnicodeEncoding的问题,请指教!!
请看代码
UnicodeEncoding encoding = new UnicodeEncoding();
byte[] hashBytes = encoding.GetBytes(userId);
SHA1 sha1 = new SHA1CryptoServiceProvider();
byte[] cryptPatronId = sha1.ComputeHash (hashBytes);
得到cryptPatronId后,怎样反解码呀?即将cryptPatronId解为原来的字符串呢??(注:利用encoding.getstring(cryptPatronId)得到的字符串与原字符串usrId的值不同!!!)