wasSharpNET
/Cryptography/SHA1.cs |
---|
@@ -5,7 +5,6 @@ |
/////////////////////////////////////////////////////////////////////////// |
using System; |
using System.Text; |
namespace wasSharpNET.Cryptography |
{ |
@@ -19,10 +18,5 @@ |
{ |
return BitConverter.ToString(sha1.ComputeHash(data)).Replace("-", ""); |
} |
public static string ToHex(this System.Security.Cryptography.SHA1 sha1, string data) |
{ |
return BitConverter.ToString(sha1.ComputeHash(Encoding.UTF8.GetBytes(data))).Replace("-", ""); |
} |
} |
} |