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
2009-03-05 18:31:45