Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / EncryptionHelper Class / EncryptAES Method / EncryptAES(String,Byte[]) Method
The text to encrypt
The key to use for encryption
Version
EncryptAES(String,Byte[]) Method
Encrypts the given plain text using AES encryption. Uses the given encryption key data.
Syntax
public static string EncryptAES( 
   string plainText,
   byte[] keyBytes
)

Parameters

plainText
The text to encrypt
keyBytes
The key to use for encryption

Return Value

The encrypted text
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also