vb.net - Encrypting the Connection String values in App.Config file -
so have code in app.config
<appsettings> <add key="dtsrc" value="fmdbms01"/> <add key="initcat" value="training"/> <add key="userid" value="mysa"/> <add key="password" value="mypassword"/> <add key="clientsettingsprovider.serviceuri" value=""/> </appsettings>
when found interesting article here encrypts sa username , password, tried using it. however, works same format illustrated in link, wish encrypt data is, tried using decrypt appsettings
%windir%\microsoft.net\framework\v2.0.50727\aspnet_regiis -pef "appsettings" "c:\users\mypcname\documents\visual studio 2010\projects\project\project\"
where
"c:\users\mypcname\documents\visual studio 2010\projects\project\project\"
is file location of web.config, error states there illegal characters in path
then used this
%windir%\microsoft.net\framework\v2.0.50727\aspnet_regiis -pef "appsettings" "c:\users\jsumgo\documents\visual studio 2010\projects\etrack\etrack\web.config"
then error states configuration physical path cannot opened.
i tried changing attributes connectionstrings
still no avail, doing wrong? or possible encrypt type of format?
i renamed app.config web.config, because that's instruction says.
Comments
Post a Comment