Click or drag to resize

AesEncrypt Method (SecureString, String)

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(
	SecureString password,
	string data
)

Parameters

password
Type: System.SecuritySecureString
The password to use to encrypt the data
data
Type: SystemString
The data to encrypt. The string data will be converted to bytes using UTF8

Return Value

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