Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If security is the top concern, making all encrypted messages the same length would be ideal as far as I can tell. That way, all you are giving away is an upper bound on the message size. Padding with random noise to a uniform length (with the payload either compressed or not) and then encrypting should be the most secure option.


What's the point of compressing if you're just going to pad it anyway? If you're worried about security just encrypt and don't compress.


The point in that case is to combat plain text (known value) attacks.

Precisely how the padding / extra padding is distributed within the data stream to be encrypted is also an issue. The goal is to make it very difficult to guess where data will be represented if you do happen to know the plain text.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: