AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

AESEncryption..::..Encrypt Method (String, String)

Encryption utilizing AesCryptoServiceProvider using CipherMode=CipherMode.CBC and all other default values

Namespace:  AdvantageCMS.Core.Common
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static string Encrypt(
	string value,
	string key
)

Parameters

value
Type: String
The value to be encrypted.
key
Type: String
The key used to encrypt.

Return Value

The encrypted string