RSA Encryption/Decryption Program in C++?

I am creating a project for class that takes an input of 2 integers from the user, checks those integers for primality, generates public and private keys, encrypts a string from the user, and decrypts that same string. Can anyone help me with some code? I am completely lost.

mapighimagsik_so2008-09-15T12:22:46Z

Favorite Answer

If you're programming in Windows you can check out the crypto api.

If you actually have to implement the libs, then you might want to look at some wiki articles on Rijndael.

AES might be a bit much, but you can use the links to implement something simpler, if you like.