Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi:

Although I have programmed fro many years, I have never had the need to use cryptography... until now.

I need to produce a text based file, then encrypt it using our private key and our suppliers public key. This will enable them to ensure the providence of the file and decrypt it with their own private key.

The supplier has sent me their public key which is a RSA 4096/4096 SHA-2 256 key.

I use C# with .NET 3.5 SP1.

Now for the question: How should I go about this task?

I'm not sure how to encrypt a document with public and private keys, also which should I encrypt first: public or private?

What is the easiest way for me to generate my own public/private pair that conforms with the standard mentioned?

All help greatfully accepted!

Regards,
Martin.

BTW, I have already checked out the CodeProject articles, that is why I'm asking specific questions.
Posted
Updated 22-Sep-10 20:21pm
v2

1 solution

I suggest you start by search for CodeProject Articles[^] or Google[^]
 
Share this answer
 

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