Encryption encryption = new Encryption(); //Trial Mode
//Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
byte[] input = new byte[255];
for (int i = 0; i < 255; i++)
input[i] = (byte)i;
byte[] encryptedBytes = encryption.EncryptBytes(EncryptionProvider.Rijndael, "My password", input);
byte[] decryptedBytes = encryption.DecryptBytes(EncryptionProvider.Rijndael, "My password", encryptedBytes);
bool decryptedSucessfully = true;
for (int i = 0; i < input.Length; i++)
{
if (input[i] != decryptedBytes[i])
{
decryptedSucessfully = false;
break;
}
}
Console.WriteLine("Decrypted successfully: {0}", decryptedSucessfully);