how to encrypt the database connection string in web.config file
-
-
iam writting the database connection string in appsettings of a weg.config file like this < add key="my connection" value="Data Source=abcd;UID=ab1;Password=ab2;"/> but this should not be visible to the user in the same way how this can be encrypted.
-
Thanks, Sun Rays To get something you must have to try once. My Articles
DataProtectionConfigurationProvider by using this the web.config appsettings are automatically converted to some code ..is this code is genrated same for all applications ....now where i have to write the encryptmethod of web.config and where i have to decript ...when i decript again i have to call encrypt....
-
DataProtectionConfigurationProvider by using this the web.config appsettings are automatically converted to some code ..is this code is genrated same for all applications ....now where i have to write the encryptmethod of web.config and where i have to decript ...when i decript again i have to call encrypt....
-
Hey, check it and implement it. link[^]
Thanks, Sun Rays To get something you must have to try once. My Articles