Table of Contents

AesCryptor Constructor

Definition

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

AesCryptor()

Initializes a new instance of the AesCryptor class.

public AesCryptor()

AesCryptor(byte[], byte[])

Initializes a new instance of the AesCryptor class.

public AesCryptor(byte[] key, byte[] initializationVector)

Parameters

key byte[]

The secret key of this instance.

initializationVector byte[]

The initialization vector (IV) of this instance.

Exceptions

ArgumentNullException

key cannot be null -or- initializationVector cannot be null.

CryptographicException

key does not meet the required fixed size of either 128 bits, 192 bits or 256 bits -or- initializationVector does not meet the required fixed size of 128 bits.