Why can’t we encrypt the message with sender’s private key and receiver’s public key in case of sending messages through a server?

I read that why do we need E2EE and can’t rely only on HTTPS for sending messages through a messaging app. The reason which i understood is when sender sends the message to the server, the TLS connection is associated with the server. TLS … Continue reading Why can’t we encrypt the message with sender’s private key and receiver’s public key in case of sending messages through a server?

Has the ECDH protocol been designed just for key exchange or is it widely used for key exchange? [migrated]

As far as my understanding of the ECDH goes, after systems are encrypted using ECDH protocol, any data that comes out of the first system will be encrypted and can only be decrypted at the receiving end. Literature says that ECDH is used f… Continue reading Has the ECDH protocol been designed just for key exchange or is it widely used for key exchange? [migrated]

how to send prime and generator of diffie hell-men to client over network node js?

I am using crypto module of node js for exchanging key using diffie-hellman algorithm.

server.js

const crypto = require(“crypto”);

const alice = crypto.createDiffieHellman(512);

const aliceKey = alice.generateKeys();

client.js

cons… Continue reading how to send prime and generator of diffie hell-men to client over network node js?

Diffie-Hellman + Asymetric encryption kept simple, or alternatives to TLS [migrated]

I am working on a system that includes our dear friends Alice, Bob, and a server that is only partially trusted. I have spent the majority of the day reading up on various cryptography methods, but I have concluded that I need some help to… Continue reading Diffie-Hellman + Asymetric encryption kept simple, or alternatives to TLS [migrated]

Do I need an ECDSA SSL certificate to use Diffie–Hellman key exchange method?

I cannot quite understand the role of Diffie–Hellman key exchange.

Does RSA SSL certificate work with the Diffie–Hellman key exchange or is it only used with an ECDSA certificate?

When is Diffie–Hellman algorithm used if a client still h… Continue reading Do I need an ECDSA SSL certificate to use Diffie–Hellman key exchange method?