saber-notes / saber

The cross-platform open-source app built for handwriting
https://saber.adil.hanney.org
GNU General Public License v3.0
1.97k stars 122 forks source link

Store encrypted files as binary instead of base64 #913

Open ZebraVogel94349 opened 10 months ago

ZebraVogel94349 commented 10 months ago

Motivation

I noticed that all encrypted files on Nextcloud are stored as base64, which is inefficient since you could also store them in a binary format to reduce the file size of all encrypted notes (and also the time it takes to upload/download them) by 33%.

Solution

Don't use encrypt64() to encrypt the contents of the file but instead just encrypt().

Alternatives

No response

Saber version

v.0.15.3

Device

Anything else?

No response

ceskyDJ commented 10 months ago

Good point!