Scripts: asp :: ASP.NET encryption :: Library Article #7
Developer's Section
![]() By: Erobo Team Member
|
|||||||||||||||
![]()
You can take an extra security measure in your ASP.NET applications when database login information needs to be protected. The best way is to use the following code:
1.Open the web.config file in your ASP.NET application:
Now, open the file of the current form you are working on and add the following to the code behind of the file:
The RSAProtectedConfigurationProvider model provided will then encrypt the connection string when the script is executed. In a similiar manner you can use the DataProtectionConfigurationProvider to decrypt connection strings:
|
|||||||||||||||
|
|||||||||||||||
![]() |
|
![]() the form below: |