views:

1055

answers:

2

I want to store a password in a config file but i would like it to be encrypted so that in the app it can be read, decrypted and used. What's the best way to encrypt a password like this?
Edit: I want to encrypt only password, not whole config, or whole section.

+3  A: 

Encrypting Passwords in a .NET app.config File

Wael Dalloul
but this works only on my computer! i mean: if i encrypt the password on my computer, the other user that gets the app installed is not able to decrypt the password and therefore to use my application
agnieszka