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 - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -