C# Class Rest4Net.Utils.xBrainLab.HMACMD5

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ComputeHash() public méthode

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.
Résultat byte[]

ComputeHash() public méthode

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.
Résultat byte[]

ComputeHashToBase64String() public méthode

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.
Résultat string

ComputeHashToBase64String() public méthode

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.
Résultat string

HMACMD5() public méthode

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

HMACMD5() public méthode

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

HMACMD5() public méthode

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.
Résultat System