AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

Encryption..::..Encrypt Method

A light weight encryption that encrypts specified value using Rijndael and a static salt. For stronger encryption with initialization vectors use Encryption.RijndaelEncryption.Encrypt or Encryption.AESEncryption.Encrypt instead.

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 for encryption

Return Value

System.String.

Exceptions


ExceptionCondition
eCMSEngineEventStatus..::..ExceptionThere was an error encrypting the data.