Click or drag to resize

AesEncrypt Method (KeyMaterial, Byte)

Encrypts a string data

Namespace:  Cauldron.Cryptography
Assembly:  Cauldron.Cryptography (in Cauldron.Cryptography.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static byte[] Encrypt(
	KeyMaterial keyMaterial,
	byte[] data
)

Parameters

keyMaterial
Type: Cauldron.CryptographyKeyMaterial
The KeyMaterial to use to encrypt the data
data
Type: SystemByte
The data to encrypt

Return Value

Type: Byte
The encrypted data represented by bytes
Exceptions
ExceptionCondition
ArgumentNullExceptionkeyMaterial is null
ArgumentNullExceptiondata is null
See Also