Skip to content

Howto Make a simple Web-Chat E2E encryptet #682

Answered by nwtgck
HoerMirAuf asked this question in Q&A
Discussion options

You must be logged in to vote

Hints

I'd like give you some hints.

  • HTTP is enough. Piping Server with HTTPS is not neccessary for E2EE.
  • The two clients should establish a secure connection over the untrusted line between them.
  • Diffie–Hellman key exchange is useful for establishing a secure connection over the untrusted line.
  • The key exchange securely exchanges a key.
  • The two clients can have the same key. So the key will be used for a symmetric key encryption. So E2EE can be conducted.
  • This E2EE is not enough for security because of Man-in-the-middle attack. The clients should authenticate each other.
  • To authenticate, you can use a digital signature.

You may think Diffie–Hellman key exchange is like magic because it …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nwtgck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants