web.config best pratices for passwords

  • Thread starter Thread starter Jay Douglas
  • Start date Start date
J

Jay Douglas

Hello all.
I have a few different applications that store passwords for various
items in the web.config file in plain text. (i.e. SMTP Credentials, DB
connection strings) .. I know this is a pretty serious security risk,
however I'm having a hard time find a better way to allow easy modification
of user name and passwords for application components. I was wondering what
type of input other developers may have or possibly a Url containing some
good information.

Thanks in advance.
 
Best practice is to salt (add know alphanumeric string) and encrypt and
store somewhere such as the global.asax.vb file. Ideally using the registry
is even better.

I personally use 256bit AES encryption with part (encrypted) in web.config
and the other part in the global.asax.vb. Then when the application begins
I decrypt and build the string on demand. I leave the server IP unencrypted
so i can easily point to another server for the DB if needed.

Harry
 

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