CryptographyEncryptDictionary Method (IDictionaryString, String, String) |
Namespace: AskiaPortalCmn.Security
public static string EncryptDictionary( IDictionary<string, string> value, string password )
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);