noledgebin / frontend

NoledgeBin is a zero-knowledge pastebin
https://andinus.unfla.me/noledgebin/
GNU Affero General Public License v3.0
1 stars 1 forks source link

Turn off compression when it makes sense #9

Closed andinus closed 2 years ago

andinus commented 2 years ago

From https://github.com/noledgebin/frontend/issues/2:

According to my tests, it makes sense to turn off compression if
the pasted data is < 72 characters. The test simply was to paste
repeated data and see when (compress + encrypted) length was equal
to (encryption without compression) length.

Before 72 characters, compressing it increased the encrypted
text's length.
andinus commented 2 years ago

This is a breaking change, old pastes won't work if this is merged. But going forward this will help us.