encrypt and compress data

nangananga Member Posts: 201
If you had to both encrypt and compress data during transmission, which would you do first, and why?

Comments

  • dynamikdynamik 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.
  • undomielundomiel Member Posts: 2,818
    I would have to concur with dynamik.
    Jumping on the IT blogging band wagon -- http://www.jefferyland.com/
  • nangananga 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.”....
  • shednikshednik Member Posts: 2,005
    nanga wrote:
    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.”....

    Sounds about right to me...
  • tierstentiersten 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.
  • JDMurrayJDMurray Admin Posts: 13,091 Admin
    tiersten wrote:
    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.
    "Poorly-diffused cipher-text" is the term.
Sign In or Register to comment.