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.137 -- Release Build+074ed2672979376fdbab1e0a1f500a80b21869d0
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