Exemple #1
0
 public string DecryptText(byte[] encryptedText, string password, EncodingEnums encoding = EncodingEnums.UTF8)
 {
     return(encoding.GetEncoding().GetString(Decrypt(encryptedText, password)));
 }
Exemple #2
0
 public byte[] EncryptText(string input, string password, EncodingEnums encoding = EncodingEnums.UTF8)
 {
     return(Encrypt(encoding.GetEncoding().GetBytes(input), password));
 }