3 ms·
Is end-to-end encrypted messaging really that hard? Assuming you simply forgo all the features that require a server and just send messages peer-to-peer using T
by tootie 11y ago
Is end-to-end encrypted messaging really that hard? Assuming you simply forgo all the features that require a server and just send messages peer-to-peer using TLS, isn't this pretty straightforward to do?
- SomeCallMeTim 11y agoIt's not hard to encrypt the messages if you use an existing, secure library to do the work. What's hard is making it impossible for someone other than the intended recipient to decrypt the message. How do you get the key to the recipient? Using something like a secure chat? Oops, that's what you're trying to create. Maybe DH key exchange? [1] It's not rocket science to implement, but mistakes are possible. Also, unless you're sure that you're talking directly to the person you think you are, a MITM could be performing the key exchange with each end, and again you have someone overhearing you. So in addition to a proper DH implementation you need some way for the people to verify that the tokens exchanged match. tl;dr: Yes, it's really that hard. [1] https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exc...
- JshWright 11y agoPeer discovery is an interesting problem to solve in this case... Encrypting the message is easy. Delivering it reliably without some sort of server is a bit more challenging...
- tootie 11y agoIs using a server for discovery and key exchange so terrible? The messages will still never touch it.