Scripts: Asp :: Asp.net encryption :: Library Article #7
Developer's Section
Encrypt / Decrypt Database Parameters in ASP.NET By: Erobo Team Member
|
|||||||||||||||
Learn to encrypt database parameters in ASP.NET
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:
|
|||||||||||||||
|
|||||||||||||||
See other Scripts in Asp.net encryption |
Submit Your Scripts: |
System Message:
|
If you would like to have your ASP & ASP.NET scripts published in this section please fill out the form below: |