views:

39

answers:

2

i am storing the connection string provided by the user at setup time to a txt file

its a website

by setup i mean first access of the admin to the site

well

its working

but i need some code which can encrypt the password text and store to file so any one having access to the system can not understand the passward,

also please show decrpytion

thank u

+1  A: 

This has been answered before...

http://stackoverflow.com/questions/202011/encrypt-decrypt-string-in-net

dotalchemy
This answer doesn't apply to this question. This should be deleted.
Rook
+2  A: 

Anyone who has access to your system is able to read the connection string as long as the program is able to decrypt it without having the user enter a password.

thejh
+1 you are correct sir.
Rook
yes thats right, but please provide a way, if the string is stored to file in greek language users cannot understand it right