C# Class Rest4Net.Utils.xBrainLab.HMACMD5

Computes a Hash-based Message Authentication Code (HMAC) using the T:xBrainLab.Security.Cryptography.MD5 hash function
Show file Open project: acropolium/Rest4Net

Public Methods

Method Description
ComputeHash ( byte buffer ) : byte[]

Computes the hash value for the specified byte array.

ComputeHash ( string buffer ) : byte[]

Computes the hash value for the specified string (UTF8 default encoding).

ComputeHash ( string buffer, Encoding encoding ) : byte[]

Computes the hash value for the specified string.

ComputeHashToBase64String ( string buffer ) : string

Computes the hash for the specified string (UTF8 default encoding) to base64 string.

ComputeHashToBase64String ( string buffer, Encoding encoding ) : string

Computes the hash for the specified string to base64 string.

HMACMD5 ( byte key ) : System

Initializes a new instance of the HMACMD5 class the supplied key.

HMACMD5 ( string key ) : System

Initializes a new instance of the HMACMD5 class using the supplied key with UT8 encoding.

HMACMD5 ( string key, Encoding encoding ) : System

Initializes a new instance of the HMACMD5 class using the supplied key with supplied encoding.

Private Methods

Method Description
Combine ( byte a1, byte a2 ) : byte[]

Combines two array (a1 and a2).

InitializeKey ( byte key ) : void

Initializes the key.

UpdateIOPadBuffers ( ) : void

Updates the IO pad buffers.

Method Details

ComputeHash() public method

Computes the hash value for the specified byte array.
public ComputeHash ( byte buffer ) : byte[]
buffer byte The input to compute the hash code for.
return byte[]

ComputeHash() public method

Computes the hash value for the specified string (UTF8 default encoding).
public ComputeHash ( string buffer ) : byte[]
buffer string The input to compute the hash code for.
return byte[]

ComputeHash() public method

Computes the hash value for the specified string.
public ComputeHash ( string buffer, Encoding encoding ) : byte[]
buffer string The input to compute the hash code for.
encoding System.Text.Encoding The encoding.
return byte[]

ComputeHashToBase64String() public method

Computes the hash for the specified string (UTF8 default encoding) to base64 string.
public ComputeHashToBase64String ( string buffer ) : string
buffer string The input to compute the hash code for.
return string

ComputeHashToBase64String() public method

Computes the hash for the specified string to base64 string.
public ComputeHashToBase64String ( string buffer, Encoding encoding ) : string
buffer string The input to compute the hash code for.
encoding System.Text.Encoding The encoding.
return string

HMACMD5() public method

Initializes a new instance of the HMACMD5 class the supplied key.
public HMACMD5 ( byte key ) : System
key byte The key.
return System

HMACMD5() public method

Initializes a new instance of the HMACMD5 class using the supplied key with UT8 encoding.
public HMACMD5 ( string key ) : System
key string The key.
return System

HMACMD5() public method

Initializes a new instance of the HMACMD5 class using the supplied key with supplied encoding.
public HMACMD5 ( string key, Encoding encoding ) : System
key string The key.
encoding System.Text.Encoding The encoding used to read the key.
return System