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 #2

Closed andinus closed 2 years ago

andinus commented 2 years ago

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.