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!

Anonymous2008-09-08T12:54:23Z

Favorite 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_tester2008-09-08T21:15:52Z

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:
http://en.wikipedia.org/wiki/Public-key_cryptography
http://en.wikipedia.org/wiki/RSA