[quoted text, click to view] Swati wrote:
> ...
> I want to issue a license to the client. The license will be generated by a
> desktop application using .Net 2.0 and client will have another desktop
> application. The license will be encrypted using a private key generated by
> RSA. The public key will be emailed to the client seperately. The client
> should enter the public key and decrypt the license.
Can you explain me a couple of things:
- what are you trying to achieve with that???
- what could be the reason for use of RSA here??????
Looking at your description, my imagination simply fails to grasp any
plausible answer to these questions...
Let me see: you encrypt message on a server, send key to client, who
uses the key to decrypt it. So, what does RSA do here???
Any symmetric algorithm will give you what you want: you generate
random key on server, encrypt and send message to client, send randomly
generated key to the client who uses it for decrypting message...
....Whoever gave you these requirements has very little idea about
cryptography generally and RSA particularly (little knowledge is far
more dangerous than no knowledge at all).
Tell them to use Google!... and also learn a simple phrase:
"- public key is for ENCRYPTION;
private key is for DECRYPTION;"
not the other way around!
-Valery.
http://www.harper.no/valery