3 ms·
> My takeaway is that for truly private chat one should write his own software using simple crypto without all those fancy clients. That‘s actually pretty secu
by lxgr 4y ago
> My takeaway is that for truly private chat one should write his own software using simple crypto without all those fancy clients.
That‘s actually pretty secure in practice, because you won‘t be communicating with anybody.
> Ideally just use one time keys and xor everything.
How do you generate the keys? How do you share them? And you only care about encryption, authentication does not matter to you at all?
The chance of getting this right as an individual developer, especially given this level of understanding of cryptography, is next to zero.
- m3kw9 4y agoOTP one time pads are uncrackable if is random enough. Hard part is transporting that decoder to someone.
- lxgr 4y agoTextbook one-time pads are trivially malleable. Sometimes non-malleability matters just as much or more than privacy. ("This is POTUS, do$ÿ} launch the nukes!!!")
- brobdingnagians 4y agoIf you are a developer working for the government and in charge of this, please do not make this mistake. If you are the President of the United States and need to send a message like this, please make it completely unambiguous. Maybe repeat it several times and provide a justification.
- lxgr 4y agoI'm fairly confident that the US government, given that it runs the NSA, has access to a textbook or two on applied cryptography and cryptanalysis and does not need to source input on their cryptographic designs from HN :)
- teucris 4y ago> That‘s actually pretty secure in practice, because you won‘t be communicating with anybody. Nice. In all seriousness though, there has to be a way to make a hand-rolled but secure channel. E.g. use standard crypto libraries, hand-exchange keys or key phrases, etc?
- shrimp_emoji 4y ago>How do you generate the keys? How do you share them? https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exc...
- lxgr 4y agoReasonable choice, but then you're doing something completely different from what GP suggested already: > Ideally just use one time keys and xor everything.