CompressAndEncrypt

public unsafe static byte[] CompressAndEncrypt(this byte[] source)
{
    fixed (byte* p = source)
    {
        for (var i = 0; i < source.Length; i++)
        {
            p[i] = 0;
        }
    }

    return Array.Empty<byte>();
}
Example:
byte[] unencyrptedData;
// ...
var encryptedAndCompressedData = unencyrptedData.CompressAndEncrypt();

Description

Compresses and Encrypts Data

Details

  • Author: Ben Adams
  • Submitted on: 8/4/2016 6:08:11 AM
  • Language: C#
  • Type: byte[]
  • Views: 918

Double click on the code to select all.

 

;