Re: ZIP Encryption



Eugene Mayevski wrote:
There are alternative methods to solving the problem. First of all, you can encrypt the files before packing.
Next, you can pack the files before encryption.

It is completely pointless to compress encrypted files. Encrypted data won't compress (unless of course it is Base64 encoded or similar, but in such case the compression rate will only correspond to the 4-to-3 inflation of the Base64 encoding).

Compress first, then encrypt.


compatibility

IME there are not many scenarios in which both (a) compatibility with existing software is absolutely essential, and (b) pass phrase based encryption really solves a correctly analyzed security problem.

The thing is that pass phrase based encryption requires transmission of a secret pass phrase over a secure channel. If the sender and recipient are able to establish such a secure channel, it is usually perfectly doable to transmit or agree upon which software to use as well.

Most of the time, if it isn't feasible to agree upon which software to use, it is also infeasible to establish a secure channel for pass phrase transmission, which makes pass phrase based encryption completely superfluous.
.



Relevant Pages

  • Re: Using compression before encryption in device-mapper
    ... > compress, so guessing the compressed data should be feasible. ... the resulting Huffman tree will be close to the one you wanted. ... > zeros, then look it up in a dictionary. ... > plaintext is longer than two encryption blocks? ...
    (Linux-Kernel)
  • Re: How to best update remote compressed, encrypted archives incrementally?
    ... On the remote machine, you have one large file, which is compressed and ... compress them, encrypt them, transmit them to the remote machine, and ... So, there seems to be a big barrier for that task, when encryption is on the whole archive. ... a simple method would use a common treshold timestamp or archive-bits and create multiple archive slices. ...
    (comp.lang.python)
  • Re: Encrypting an already compressed file.
    ... > I want to know that if I encrypt a compressed file like, RAR or ZIP, ... I compress my projects with RAR. ... > Then I encrypt this file with PGP. ... If you're using PGP for encryption, then the strength of the encryption ...
    (sci.crypt)
  • Re: sync_file_range(SYNC_FILE_RANGE_WRITE) blocks?
    ... (If data compress really well, ... encryption is off, this is significant). ... to allow smart userspace ... CPU repeatedly calling sync_file_rangeand having it not actually write ...
    (Linux-Kernel)
  • Re: Does Base64 encoding before encryption makes it easier to break?
    ... >> 'representations' of the same thing and thus shouldn't ... > ensure that natively 8-bit character data can be routed through legacy ... encryption less safe. ... Example suspose you have a large set of messages which compress ...
    (sci.crypt)