Exemplo n.º 1
0
 public static string Decrypt(string cipherText, string entropy, out string description)
 {
     if (entropy == null)
     {
         entropy = string.Empty;
     }
     return(Encoding.UTF8.GetString(DataProtection.Decrypt(Convert.FromBase64String(cipherText), Encoding.UTF8.GetBytes(entropy), out description)));
 }
Exemplo n.º 2
0
 public static string Decrypt(string cipherText, out string description)
 {
     return(DataProtection.Decrypt(cipherText, string.Empty, out description));
 }