sha1加密(C# VS2005)
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://approlife.blog.51cto.com/304821/60705 |
using System.Security.Cryptography; string str = "20070111"; SHA1 sha1 = new SHA1CryptoServiceProvider(); byte[] bytes_sha1_in = UTF8Encoding.Default.GetBytes(str); byte[] bytes_sha1_out = sha1.ComputeHash(bytes_sha1_in); string str_sha1_out = BitConverter.ToString(bytes_sha1_out); MessageBox.Show(str_sha1_out);本文出自 “技术旅途上蹒跚的步行者” 博客,请务必保留此出处http://approlife.blog.51cto.com/304821/60705 本文出自 51CTO.COM技术博客 |


using System.Security.Cryptography;
approlife
博客统计信息
热门文章
最新评论
友情链接