SparkleLib.Extensions.SHA1 C# (CSharp) Method

SHA1() public static method

public static SHA1 ( this s ) : string
s this
return string
        public static string SHA1(this string s)
        {
            SHA1 sha1          = new SHA1CryptoServiceProvider ();
            byte [] bytes      = ASCIIEncoding.Default.GetBytes (s);
            byte [] sha1_bytes = sha1.ComputeHash (bytes);

            return BitConverter.ToString (sha1_bytes).ToLower ().Replace ("-", "");
        }