How to encrypt password string in my .config xml file (and .ini fi

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

In my project I have a need for encrypting the password portion (only
password, not the whole file) of my database connection string, so the
password doesn't show as plain text. So, basicly, what I need are two pieces:
a piece of code (can be ran seperately as utility) that encypt the password,
and code that, at application run-time, read and decrypt the password.

How do I do that?

Please help!

Thanks

Feng
 
Feng said:
Hi,

In my project I have a need for encrypting the password portion (only
password, not the whole file) of my database connection string, so the
password doesn't show as plain text. So, basicly, what I need are two pieces:
a piece of code (can be ran seperately as utility) that encypt the password,
and code that, at application run-time, read and decrypt the password.

How do I do that?

Please help!

Thanks

Feng

This article talks about .Net encryption and has a section on string
encryption.

http://www.devarticles.com/c/a/VB.Net/String-Encryption-With-Visual-Basic-.NET/

Chris
 
Back
Top