Table of Contents

HmacSecureHashAlgorithm1 Constructor

Definition

Namespace
Cuemon.Security.Cryptography
Assemblies
Cuemon.Security.Cryptography.dll
Source
src/Cuemon.Security.Cryptography/HmacSecureHashAlgorithm1.cs

HmacSecureHashAlgorithm1(byte[], Action<ConvertibleOptions>)

Initializes a new instance of the HmacSecureHashAlgorithm1 class.

public HmacSecureHashAlgorithm1(byte[] secret, Action<ConvertibleOptions> setup)

Parameters

secret byte[]

The secret key for HmacSecureHashAlgorithm1 encryption. The key can be any length, but if it is more than 64 bytes long it will be hashed (using SHA-1) to derive a 64-byte key. Therefore, the recommended size of the secret key is 64 bytes.

setup Action<ConvertibleOptions>

The ConvertibleOptions which need to be configured.