HashExtensions
Assembly: ServiceStack.dll
View Source
Declaration
public static class HashExtensions
Methods
HexHash(HashAlgorithm, String)
View Source
Declaration
public static string HexHash(HashAlgorithm hash, string s)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Security.Cryptography.HashAlgorithm | hash |
System.String | s |
HexHash(HashAlgorithm, Byte[])
View Source
Declaration
public static string HexHash(HashAlgorithm hash, byte[] bytes)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Security.Cryptography.HashAlgorithm | hash |
System.Byte[] | bytes |
ToSha1Hash(String)
View Source
Declaration
public static string ToSha1Hash(this string value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
ToSha1HashBytes(Byte[])
View Source
Declaration
public static byte[] ToSha1HashBytes(this byte[] bytes)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.Byte[] | bytes |
ToSha256Hash(String)
View Source
Declaration
public static string ToSha256Hash(this string value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
ToMd5Hash(String)
View Source
Declaration
public static string ToMd5Hash(this string value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
ToSha256HashBytes(Byte[])
View Source
Declaration
public static byte[] ToSha256HashBytes(this byte[] bytes)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.Byte[] | bytes |
ToSha512Hash(String)
View Source
Declaration
public static string ToSha512Hash(this string value)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | value |
ToSha512HashBytes(Byte[])
View Source
Declaration
public static byte[] ToSha512HashBytes(this byte[] bytes)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.Byte[] | bytes |