.NET如何创建SHA1哈希?

3

有没有内置技术可以做到这一点?它期望哪些参数?

1个回答

7

每个 MSDN

byte[] data = new byte[DATA_SIZE];
byte[] result; 

SHA1 sha = new SHA1CryptoServiceProvider(); 
// This is one implementation of the abstract class SHA1.
result = sha.ComputeHash(data);

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接