Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have an application which needs to encrypt and decrypt the connectionstring in web.config file

like i had login and logout page.

so i dont know where to place encrypt and decrypt the login credentials
so i placed encypt code i login page and
decrypt code in logout page

is it right to place like this.

and also one more thing if i encrypt it dynamically changes the web.config file so all my session values are becoming null why?

this is my connectionstring

<connectionStrings><add name="Conn" connectionString="DataSource=northwind;server=myserver;User ID=test;Password=test"providerName="System.Data.SqlClient" /></connectionStrings>

Thanks
Srinivas
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900