encryption - When compressing and encrypting, should I compress first, or encrypt first? -


if aes-encrypt file, , zlib-compress it, compression less efficient if first compressed , encrypted?

in other words, should compress first or encrypt first, or matter?

compress first. once encrypt file generate stream of random data, not compressible. compression process depends on finding compressible patterns in data.


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -