Fabrizio,
You can use any of the classes that derive from the
System.Security.Cryptography.SymmetricAlgorithm class to encrypt your
string. However, if you store the private key and IV value in the assembly,
you need to be aware that almost anyone could see it using a disassembler.
In this case, you might want an unmanaged assembly of some sort that would
return the key and iv value to you. While this isn't foolproof, it will
deter the majority of people who's threshold is looking in the disassembler.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
ni**************@exisconsulting.com
"Fabrizio" <fm******@gestionescorte.it> wrote in message
news:0a****************************@phx.gbl...
HI,
I would like to save some user configuration info on XML
file, but I also need to "hide" the password so that
nobody can read that info. Do i need an ecryption routine
or can I convert the password in some other format?
Thanks,
Fabrizio