View Source Zstream.EncryptionCoder.AES (zstream v0.6.7)

Implements AES encryption (128, 192, 256) as described in https://www.winzip.com/en/support/aes-encryption

Supports both AE-1 and AE-2 formats:

  • AE-1: Exposes the CRC-32 in the zip file, WinZip itself encrypts most files using the AE-1 format
  • AE-2: Does not expose the CRC-32 in the zip file

Options

  • :key_size - The AES key size in bits. Valid values are 128, 192, or 256. Defaults to 256.
  • :ae_version - The AES encryption format version. Valid values are 1 or 2. Defaults to 1.