Key Exchange via Convex

Hi, I want to build a chat app with e2e encryption. To do this I need a way to exchange the public keys between two (or more) users. How can I achieve that with Convex?
6 Replies
Michal Srb
Michal Srb•10mo ago
Convex is not any different to any other database in this respect. If you find a resource (article, tutorial) that uses another database (or another mechanism, perhaps peer-to-peer) for key exchange you can swap in Convex instead.
jamwt
jamwt•10mo ago
@FleetAdmiralJakob 🗕 🗗 🗙 our very own @lee built an app with end-to-end encryption. you can find it here: https://github.com/ldanilek/whisper
GitHub
GitHub - ldanilek/whisper
Contribute to ldanilek/whisper development by creating an account on GitHub.
jamwt
jamwt•10mo ago
we use it from time to time it's for secure files, but some of the ideas are probably similar and can be helpful
lee
lee•10mo ago
it doesn't do key exchange though 🙂 . I don't know if we have examples that do that
jamwt
jamwt•10mo ago
true
jamwt
jamwt•10mo ago
something like this might help -- browser-side diffie-hellman: https://github.com/shade/diffiejs
GitHub
GitHub - shade/diffiejs: Diffie Hellman implementation in JavaScript
Diffie Hellman implementation in JavaScript. Contribute to shade/diffiejs development by creating an account on GitHub.

Did you find this page helpful?