Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello all,

I am new to cryptography and need you urgent help.

* I want to generate a set of asymmetric keys based on a password.
* Use Private key to encrypt a string to cipher text
* Use public key in my program to decrypt the cipher text from a text file
* Use the decryped information to give rights to users of my application.

Please suggest the wayout with example of commands, if possible.

I have tried searching on net and in books but no success.

Thanks in advance.
Posted
Comments
[no name] 9-Apr-14 12:38pm    
You found nothing? http://www.bing.com/search?q=vb.net+asymmetric+keys
atul sharma 5126 9-Apr-14 12:55pm    
Thanks for immediate response.

1 solution

All the ideas are explained here: http://en.wikipedia.org/wiki/Public-key_cryptography[^]. Please read very carefully.

As you want to make the decryption key public, your data can be decrypted by anyone. So, what's the use? Here is what it is: it can be used to protect the source document from faking using the digital signature schemes: http://en.wikipedia.org/wiki/Digital_signature[^].

In turn, digital signatures can be use in digital certificates: http://en.wikipedia.org/wiki/Digital_certificate[^].

With .NET FCL, a lot of encryption stuff is already implemented for you. As you are interested in asymmetric algorithms (and public-key cryptography) in particular, you can start here: http://msdn.microsoft.com/en-us/library/system.security.cryptography.asymmetricalgorithm%28v=vs.110%29.aspx[^].

—SA
 
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