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

SQL php on different pages to Insert (mysqli) -

php - How can an email be returned from Stripe Checkout? -

sql - Partition elimination in Greenplum -