if you want to do something reallyreallysimple, use an XOR algorithm.
You only need one method, it will XOR each character against a known value
(from 0 to 255 for ASCII) and spit out an xor-ed string that is the same
length as the original. To Decrypt it, send the xor-ed string back into the
same method. You can do all this in about 5 lines of code.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"eu*****@rusmex.com" wrote:
Hello,
I need to encrypt and decrypt a string in .NET Framwork 2.0.
What is the easiest way to do it?
I know that there are many different ways to use encryption in .NET,
some more complex than others. All I need is to hide from an end-user
some clear-text settings -- nothing super secretive.
The reliability of the encryption routine and the easy of development
are the primary goals.
Thank you for your advice.
Evgueni