Beispiel #1
0
 /// <summary>
 /// Converts ciphered text to plain text using a plain text password
 /// </summary>
 /// <param name="value"></param>
 /// <param name="password"></param>
 /// <returns></returns>
 public static string Decrypt(string value, string password)
 {
     using (var cipher = new RubykCipher())
     {
         return(cipher.Decrypt(value, GetKey(password)));
     }
 }
Beispiel #2
0
 /// <summary>
 /// Converts ciphered text to plain text using an encoded key
 /// </summary>
 /// <param name="value"></param>
 /// <param name="key"></param>
 /// <returns></returns>
 public static string Decrypt(string value, byte[] key)
 {
     using (var cipher = new RubykCipher())
     {
         return(cipher.Decrypt(value, key));
     }
 }