public class Hash
{
public string SHA1(string input)
{
byte[] hash;
using (var sha1 = new System.Security.Cryptography.SHA1CryptoServiceProvider())
{
hash = sha1.ComputeHash(Encoding.Unicode.GetBytes(input));
}
var sb = new StringBuilder();
foreach (byte b in hash) sb.AppendFormat("{0:x2}", b)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.