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

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

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -