Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Encryption Program in C++?
I am needing to create a program that encrypts a set of input integers from the user. The program needs to ask the user for 2 integers, test the integers to see if they are prime, convert the integers to a private and public key and then output the keys. Can anyone help me with this or provide me a sample of some code as a helpful guide? Thanks!
2 Answers
- Anonymous1 decade agoFavorite Answer
There are open source encryption libraries out there, like Blowfish. You can freely integrate them into programs like that. Just read the manual.
- monkey_testerLv 41 decade ago
Use the OpenSSL library. It has functions to perform all the most common encryption operations.
If you just want to understand how public-key cryptography works, try reading these articles: