AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

RijndaelEncryption..::..Decrypt Method (String, String, HashAlgorithmName, Int32, CipherMode, PaddingMode, Int32, Int32)

Decryption utilizing RijndaelManaged

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

Syntax


public static string Decrypt(
	string value,
	string key,
	HashAlgorithmName algorithm,
	int iterations,
	CipherMode mode,
	PaddingMode padding,
	int keySize,
	int blockSize
)

Parameters

value
Type: String
The encrypted value.
key
Type: String
The key used in the encryption.
algorithm
Type: HashAlgorithmName
The encryption algorithm to utilize.
iterations
Type: Int32
The number of iterations for the algorithm to use (default=1000).
mode
Type: CipherMode
The cipher mode to utilize (default=CipherMode.CBC).
padding
Type: PaddingMode
The padding mode to utilize (default=PaddingMode.PKCS7).
keySize
Type: Int32
Size of the key in bits used in the symmetric algorithm (default=256).
blockSize
Type: Int32
Size of the block in bits used in the cryptographic operation (default=128).

Return Value

The decrypted value

Exceptions


ExceptionCondition
ArgumentNullException
eCMSEngineEventStatus..::..ExceptionThere was an error decrypting the data.