コード例 #1
0
 public string Decrypt(byte[] keyPassword, string encryptedText)
 {
     try
     {
         return(RijndaelAlgorithm.Decrypt(encryptedText, InitVector, keyPassword));
     } catch (Exception ex)
     {
         return(null);
     }
 }
コード例 #2
0
 public string Decrypt(string password, string encryptedText)
 {
     try
     {
         return(RijndaelAlgorithm.Decrypt(encryptedText, password, SaltValue, _hashAlgorithm, PasswordIterations, InitVector, _keySize));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }