3

是否有内置技术可以做到这一点?它期待什么论据?

4

1 回答 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);
于 2009-03-05T18:31:45.283 回答