Namespace: ORA.API.Encryption
An object capable of Encrypting data or Decrypting data that has been previously encrypted with the same algorithm.
The following code will print the value true.
ICipher cipher = ...;
byte[] data = ...;
byte[] encrypted = cipher.Encrypt(data);
Console.WriteLine(cipher.Decrypt(encrypted).Equals(data));
Encrypts the given data following a specific algorithm.
data System.Byte[]
The data to encrypt
The encrypted data
Decrypts the given data if it has previously been encrypted using the same algorithm.
data System.Byte[]
The data to decrypt
The Decrypted data