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
Post a Comment