how to encrypt password before writing to txt file and decrypt when needed to use it [duplicate]
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
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.
精彩评论