4 ms·
Nice! Pretty easy to roll your own, these days, in less than 90 LOC: https://gist.github.com/amark/7dceae874a20878fdb9e2a8eed109bb5 https://gist.github.com/ama
by marknadal 8y ago
Nice!
Pretty easy to roll your own, these days, in less than 90 LOC: https://gist.github.com/amark/7dceae874a20878fdb9e2a8eed109bb5 https://gist.github.com/amark/7dceae874a20878fdb9e2a8eed109b...
Here is a quick video demo of it in action: https://www.youtube.com/watch?v=gmdXU82vcbE https://www.youtube.com/watch?v=gmdXU82vcbE
Warning! Ugly simple. So glad to see a full featured app like tox, use that instead. But for anyone interested in how they work or building their own... it is all Diffie-Hellman!!! :)
- evilaubergine 8y agoTox in specific lets libsodium/nacl do all the cryptography and provides little above the core methods, the more complex parts were the networking
- marknadal 8y agolibsodium is great! We're considering supporting it in conjunction with WebCrypto. Yeah, networking is hard, but is the main thing we've worked on over the years. We're using WebRTC and fallback to decentralized WebSocket relays (you can use multiple / nothing exclusive, run your own, etc.). What are you guys using?