public string Decrypt(byte[] keyPassword, string encryptedText) { try { return(RijndaelAlgorithm.Decrypt(encryptedText, InitVector, keyPassword)); } catch (Exception ex) { return(null); } }
public string Decrypt(string password, string encryptedText) { try { return(RijndaelAlgorithm.Decrypt(encryptedText, password, SaltValue, _hashAlgorithm, PasswordIterations, InitVector, _keySize)); } catch (Exception ex) { return(null); } }