摘要: #region 获取由SHA1加密的字符串public string EncryptToSHA1(string str){ SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider(); byte[] str1 = Encoding.UTF8.GetBytes(str); byte[] str2 = sha1.ComputeHash(str1); sha1.Clear(); (sha1 as IDisposable).... 阅读全文
posted @ 2013-03-30 09:47 摩根船长 阅读(11394) 评论(0) 推荐(1) 编辑