Storing Passwords

  • Thread starter Thread starter Kevin L
  • Start date Start date
K

Kevin L

I want to store database credentials in either the registry or a file.

What is the easiest way to encrypt this information?
 
Hi,

The easiest way is probably to use the
System.Security.Cryptography.MD5CryptoServiceProvider.

Roman
 
Hi,

The best way of storing database password is to encrypt them and then
storing them in your config files, rather storing them in a registry or a
file. There are numbers of encryption technuques avaiable. Encrypt them and
store in config file.
 
Do a little reaseach on the HashPasswordForStoringInConfigFile method. The
name pretty much says it all. Even if you're not using FormsAuthentication,
you can still call this method by referencing its parental DLLs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top