tags:

views:

232

answers:

1

Are there built in techniques for doing this? What arguments does it expect?

+5  A: 

per 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);
Gavin Miller