How to send end-to-end encryption code securely

0 投票
最新提问 用户: (120 分)

I need to make a secure chat server with end-to-end encryption support, theoretically I know how it works but I don't know how to send an encryption key over ssl.

发表于 用户: (120 分)
This is way too broad. To answer this would require writing up a huge tutorial. Have you tried doing this already? What specific problem did you run into?
发表于 用户: (120 分)
I have a working chat server, I just don't know how to share an ecryption key securely.

1个回答

0 投票
最新回答 用户: (380 分)

You should use a proven key exchange algorithm such as DiffieHellman.

Otherwise you can rely on asymmetric keys to then exchange a new/temporary symmetric key. For example, each side sends half of a symmetric key which is encrypted with each-others' public key.

欢迎来到 Security Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...