how to decrypt a message in c++ | Sololearn: Learn to code for FREE!


how to decrypt a message in c++

I was wondering on how to just decrypt a message that has already been encrypted. I am using julia c++. I have been looking online and only can find how to encrypt and decrypt a message in one sitting but not just decrypt it. Also how would I go about finding the private key? would I use the friend function to find it?I have the public key.

3/29/2019 4:35:48 PM


1 Answer

New Answer


In asymmetric encryption (involving public and private keys), the message is encrypted with the public key and decrypted with the private key. Only the recipient is supposed to know the private key. There are some lessons about Cryptography on SoloLearn: Also I found the following thread very useful to clear some common misconceptions: