C++ public key encryption example!

I need a simple cryptography example of the PKI in C++, just a simple CLI so I can enter person's name, then the program generates [url removed, login to view] and [url removed, login to view] using a legit RSA key pair method, then ask the user to enter a message to encrypt it using the public key we just generated, and display the encrypted text, then assume it was sent to us by someone else and display the original text after decrypting it with the private key. I'm trying to get my head around the concept of it and need a plain generic example not a real product.

5 freelancers are bidding on average $31 for this job

Hi,bro?Thank you for taking the time to review our Bid.
in my opinion "Quality is never an accident."
My first aim to provide u quality and professional task.
It will really be a great opportunity for us in workMore

My name is Mazhar Khan. I am a Software Engineer.
I am a hard-working and determined professional seeking an
opportunity to succeed in a dynamic environment. I am confident
that my knowledge, ability and experienMore

Hi, I am Shaan.
I have 5+ years of experience in developing GUI, console applications & Telecommunications simulator for windows.
Thanks for providing clear requirements. On basic investigation, I found 3 C++ librMore

Hi,I'm very very interested in your job.
I am a new freelancer.
But i have many experience on programming.
I have done many C/C++/C# programs and cryptography technique. So I have made them on high level.
I have enMore