Click or drag to resize

SecurityUtilsAesEncrypt Method (String, SecurityUtilsBase64Variant, String)

Encrypts data using the 256-bit AES algorithm.

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static string AesEncrypt(
	string key,
	SecurityUtilsBase64Variant resultFormat,
	params string[] aFields
)

Parameters

key
Type: SystemString
The 256-bit (32 byte) AES key as a 64-char hex string.
resultFormat
Type: PDTec.IceNet.Sdk.UtilsSecurityUtilsBase64Variant
The base64 variant of the result.
aFields
Type: SystemString
The data fields to be encrypted.

Return Value

Type: String
The encrypted data as a base64-encoded string.
See Also