CipherConfigDecrypt Method

Decrypts a configuration setting in the format of "KeyName:EncodedValue" that was previously encrypted using the Encrypt(String, String, CipherStrength) method using a Aes256 key size.

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.128 -- Release Build+bd1c1867941d4700e644c1451bb1298b1b27c8bc
public static string ConfigDecrypt(
	this string value
)

Parameters

value  String
Encoded configuration setting value.

Return Value

String
Decoded configuration setting.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

If no key name is specified, value is assumed to not be encoded and is returned as is.

It is recommended to use this method at the last possible moment, e.g., in stack variables, to avoid storing decrypted data in memory for longer periods of time.

See Also