Click or drag to resize

CryptographyDecryptDictionary Method (String, String)

Decrypt the specified value to a dictionary with the specified password, using the AesManaged algorithm.

Namespace:  AskiaPortalCmn.Security
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public static IDictionary<string, string> DecryptDictionary(
	string value,
	string password
)

Parameters

value
Type: SystemString
Value to decrypt.
password
Type: SystemString
Password used to encrypt/decrypt the string.

Return Value

Type: IDictionaryString, String
Dictionary or null if fail to decrypt.
Examples

Example of usage.
Based on http://stackoverflow.com/a/14286740/2134982

IDictionary<string, string> dictionary = new Dictionary<string, string>
{
    {"key1", "value1"},
    {"key2", "value2"}
};
string encrypted = Cryptography.EncryptDictionary(dictionary, password);
IDictionary<string, string> decrypted = Cryptography.DecryptDictionary(encrypted, password);
See Also