How does .net create an SHA1 hash?
Question
Are there built in techniques for doing this? What arguments does it expect?
Solution
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);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow