C# Класс Rest4Net.Utils.xBrainLab.HMACMD5

Computes a Hash-based Message Authentication Code (HMAC) using the T:xBrainLab.Security.Cryptography.MD5 hash function
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

ComputeHash() публичный Метод

Computes the hash value for the specified byte array.
public ComputeHash ( byte buffer ) : byte[]
buffer byte The input to compute the hash code for.
Результат byte[]

ComputeHash() публичный Метод

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.
Результат byte[]

ComputeHash() публичный Метод

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.
Результат byte[]

ComputeHashToBase64String() публичный Метод

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.
Результат string

ComputeHashToBase64String() публичный Метод

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.
Результат string

HMACMD5() публичный Метод

Initializes a new instance of the HMACMD5 class the supplied key.
public HMACMD5 ( byte key ) : System
key byte The key.
Результат System

HMACMD5() публичный Метод

Initializes a new instance of the HMACMD5 class using the supplied key with UT8 encoding.
public HMACMD5 ( string key ) : System
key string The key.
Результат System

HMACMD5() публичный Метод

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.
Результат System