Posts  / #POST-223226
REDDIT

device-to-device encryption protocol

M
Sep 23, 2024 · 11:06

Hello,
I was looking for a device-to-device encryption protocol to secure data transfer and I decided to explore Botan and try to use session keypairs or sender key methods in c++.

At the moment I'm using DH X and Ed curves but I'm planning to upgrade to Post Quantum algorithms I didn't decided which one yet, surely PQ sign and hybrid encapsulation for encryption.

After I created the basic one-to-one communication with session keys I upgraded to only the sender key method, every message/data use forward secrecy and AES-256/GCM.

I created a little local chat demo using JSON as storage. It's possible use a "realtime" chat opening two accounts in two cmd.

I uploaded windows+linux binaries with a little readme inside, nothing fancy, only cmd UI
[https://mega.nz/file/d5VyFB6L#lSnTkJ\_IxlmLaxVsWeySML0X3mF5uqKlFlh9NAgQJvg](https://mega.nz/file/d5VyFB6L#lSnTkJ_IxlmLaxVsWeySML0X3mF5uqKlFlh9NAgQJvg)

In my opinion it's hard track and associate "who write what to whom" without access to the ends. At the moment, because it's only local, I didn't sign DB communication, but the underline code is already in place to check the authenticity of the sender.

In short this protocol should be anonymous and secure in pre-quantum in my opinion.

Thanks for every feedback and opinion.

NOTE = I don't know if I'll release the code on github, surely at the moment it's a bit messy :P

Post image