Click here to Skip to main content
15,903,775 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I am working on how to create Public key and Private Key using C++.

any one having any idea regarding creation of Public & Private Key.

Help me out on this issue.
Posted
Updated 25-Jul-12 16:35pm
v2

It's not urgent for us, and it's rude for you to give a timeline to people doing your job for free.

At first I thought you meant a SQL DB, but I think you mean for encryption/decryption. There's no support for this in C++, you need to write or google for code that you can use.
 
Share this answer
 
Microsoft Crypto API[^]

Examples[^]

If you're going to be creating pkcs10's then you'll need to look at their Certificate Enrolment API[^]

If you're just using self-signeds then use CertCreateSelfSignCertificate[^]
 
Share this answer
 
My favorite crypto library is libTomCrypt[^]. It implements a lot of algorithms, has very nice clear source code that is good even for learning purposes, plus its crossplatform. Its licensing is also very nice: WTFPL[^].
Definitely check out his other math libraries too if you are interested!
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900