Question

I'm working on a cryptography project that involes using RSA encryption algorithm, i have implemented the RSA algorithm and understand it, but how can i securely send the private key to the receiver?

Was it helpful?

Solution

When using asymmetric encryption you NEVER send the private key to the receiver. The receiver has your public key to encrypt your message encrypted with your private key.

Other way could be that you encrypt with the receivers public key and only he can decrypt the message with his private key.

So asymmetric encryption means to NEVER give your private key of hand.

OTHER TIPS

In a private-key cryptosystem, no matter how complex the encryption and decryption scheme is, it is required that the sender and the receiver both agree on the scheme before they can use it to communicate. This is the fundamental problem of cryptography that RSA and other public-key cryptosystem tries to solve.

In RSA, the receiver generates a public key (N, e) and a private key d using two very large primes, so large that their product is very difficult to factor. (You can refer to the details of key generation here) The key difference of RSA with the aforementioned private-key algorithm is that anyone can encrypt a message using the public key generated by the receiver and send it to anyone, but only the receiver, with the private key, can decrypt the message. For this reason, RSA is often called an asymmetric cryptosystem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top