C# Class NContrib.Extensions.StringCryptographyExtensions

Show file Open project: veracross/ncontrib

Public Methods

Method Description
HMACMD5 ( this data, string key ) : string

Creates an HMAC-MD5 fingerprint of the given data with the given key using default encoding

HMACMD5 ( this data, string key, Encoding enc ) : string

Creates an HMAC-MD5 fingerprint of the given data with the given key using the specified encoding

MD5 ( this input ) : string

Creates an all lower-case hex MD5 hash of the input string using the default system encoding

MD5 ( this input, Encoding enc ) : string

Creates an all lower-case hex MD5 hash of the input string using the specified encoding

SHA1 ( this data ) : string

Creates a lower-case SHA1 hash of the input string using the default system encoding

SHA1 ( this input, Encoding enc ) : string

Creates a lower-case SHA1 hash of the input string using the specified encoding

Method Details

HMACMD5() public static method

Creates an HMAC-MD5 fingerprint of the given data with the given key using default encoding
public static HMACMD5 ( this data, string key ) : string
data this
key string
return string

HMACMD5() public static method

Creates an HMAC-MD5 fingerprint of the given data with the given key using the specified encoding
public static HMACMD5 ( this data, string key, Encoding enc ) : string
data this
key string
enc System.Text.Encoding
return string

MD5() public static method

Creates an all lower-case hex MD5 hash of the input string using the default system encoding
public static MD5 ( this input ) : string
input this
return string

MD5() public static method

Creates an all lower-case hex MD5 hash of the input string using the specified encoding
public static MD5 ( this input, Encoding enc ) : string
input this
enc System.Text.Encoding
return string

SHA1() public static method

Creates a lower-case SHA1 hash of the input string using the default system encoding
public static SHA1 ( this data ) : string
data this
return string

SHA1() public static method

Creates a lower-case SHA1 hash of the input string using the specified encoding
public static SHA1 ( this input, Encoding enc ) : string
input this
enc System.Text.Encoding
return string