encrypt and compress data
If you had to both encrypt and compress data during transmission, which would you do first, and why?
Comments
-
dynamik Banned Posts: 12,312 ■■■■■■■■■□
My guess would be to compress it since compression algorithms would probably be more efficient with standard types of data. Once you scramble everything with encryption, you'll probably lose a lot of the common patterns that allow the highest amount of compression.
Like I said, that's just a guess. I wouldn't treat that as a definitive answer. -
undomiel Member Posts: 2,818
I would have to concur with dynamik.Jumping on the IT blogging band wagon -- http://www.jefferyland.com/ -
nanga Member Posts: 201
googled this
“Compress then encrypt. If you encrypt first you’ll have nothing but random data to work with, which will destroy any potential benefit from compression.”.... -
tiersten Member Posts: 4,505
If you get highly compressible data after you've encrypted it then your encryption algorithm sucks and you should find another one or operate it in different mode.