Encryption encryption = new Encryption(); //Trial Mode
//Encryption encryption = new Encryption("place user name here", "place license key here"); //License Mode
byte[] input = new byte[1024];
for (int i = 0; i < 1024; i++)
input[i] = 5;
byte[] compressedBytes = encryption.CompressBytes(CompressionType.GZip, input);
Console.WriteLine("{0} bytes compressed to {1} bytes with GZIP", input.Length, compressedBytes.Length);
byte[] decompressedBytes = encryption.DecompressBytes(CompressionType.GZip, compressedBytes);
compressedBytes = encryption.CompressBytes(CompressionType.Deflate, input);
Console.WriteLine("{0} bytes compressed to {1} bytes with Deflate", input.Length, compressedBytes.Length);
decompressedBytes = encryption.DecompressBytes(CompressionType.Deflate, compressedBytes);
compressedBytes = encryption.CompressBytes(CompressionType.MiniLZO, input);
Console.WriteLine("{0} bytes compressed to {1} bytes with MiniLZO", input.Length, compressedBytes.Length);
decompressedBytes = encryption.DecompressBytes(CompressionType.MiniLZO, compressedBytes);