Click or drag to resize

RsaAesEncrypt Method (String, Byte)

Encrypts data

Namespace:  Cauldron.Cryptography
Assembly:  Cauldron.Cryptography (in Cauldron.Cryptography.dll) Version: 3.2.0.2
Syntax
public static byte[] Encrypt(
	string publicKey,
	byte[] data
)

Parameters

publicKey
Type: SystemString
The public key to use to encrypt the data
data
Type: SystemByte
The data to encrypt

Return Value

Type: Byte
The ecrypted data
Exceptions
ExceptionCondition
ArgumentNullExceptionpublicKey is null
ArgumentNullExceptiondata is null
See Also