public string Decrypt(string Data, string mac, SymmetricMetaData metadata) { return Decrypt(Convert.FromBase64String(Data), mac, metadata.IV, metadata.Key.KeyBytes, metadata.Key.SecretBytes, metadata.Crypter); }
public string Encrypt(byte[] val, SymmetricMetaData metadata) { return Encrypt(val, metadata.IV, metadata.Key.KeyBytes, metadata.Key.SecretBytes, metadata.Crypter); }
private string EncryptData(string Data, SymmetricMetaData Symmetric) { return Encrypt(Encoding.Unicode.GetBytes(Data),Symmetric); }