keybase / saltpack

a modern crypto messaging format
https://saltpack.org/
BSD 3-Clause "New" or "Revised" License
989 stars 62 forks source link

Is saltpack suitable for low size messages in a streaming like environment? #58

Open gradha opened 6 years ago

gradha commented 6 years ago

I was looking for an encrypted messagepack library and found this project. My goal is to add encryption to a location based app which uses websockets to stream in real time the position of its users. As such, I would expect to send less than 100bytes per user every 5 or 10 seconds at most, which is far away from the readme description of breaking up messages in sizes of 1MB sizes.

Is there anything bad in saltpack for short messages? Will each of them pad to 1MB chunks of gibberish or this is this sentence just aimed at developers willing to implement multimedia communications (sending pictures, audio, video, which weight much more)?

geoah commented 6 years ago

@gradha not sure if you've already figured out an answer to your question but I've been playing around with saltpack in the last couple of days as well and I thought I'd pitch in.

Non-armored encrypted saltpack messages seem to be adding around 210 bytes when anonymised and around 240 bytes when not to the original body.