Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi, I want to create an application that when a button is pressed it changes text for example "Code Project" Get's changed to "Riwe}Cdqmdfl" you can then paste it into a textbox it then changes back.
Posted

1 solution

This is not "encryption", this is who knows what. All encryption deals with arrays of bytes and nothing else. The question makes no sense unless you explain your scenario, what the application should do. Just the application like that just unlikely makes any sense. When you do the encryption you should envision the scenario: it should allow access to data for some people and protect from some other people. How are those people different?

You need to learn the ideas of cryptography first:
http://en.wikipedia.org/wiki/Cryptography[^],
http://en.wikipedia.org/wiki/Symmetric-key_algorithm[^],
http://en.wikipedia.org/wiki/Public-key_cryptography[^].

I mean it: understanding the ideas is the main part here. Only when you understand it, you can really understand what you need. And the easiest part is using the implementation. With .NET FCL, you have a good set of cryptography algorithms:
https://msdn.microsoft.com/en-us/library/system.security.cryptography.asymmetricalgorithm%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/system.security.cryptography.symmetricalgorithm%28v=vs.110%29.aspx[^],

https://msdn.microsoft.com/en-us/library/System.Security.Cryptography%28v=vs.110%29.aspx[^],
https://msdn.microsoft.com/en-us/library/gg145025%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
Comments
DamithSL 8-Mar-15 22:56pm    
5wd!
Sergey Alexandrovich Kryukov 8-Mar-15 23:02pm    
Thank you, Damith.
—SA

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