Encrypting SOME application settings

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,
I'm looking for a tidy approach to this. I have a number of asp.net
application settings stored in web.config and I'd like to encrypt SOME of
them but not all of them!

e.g.
<appSettings>
<add key="ANiceMessage" value="Hello Everyone"/>
<add key="AnotherMessage" value="Hi Again"/>
<add key="databaseconnectionstring" value="dontwantyoutoreadthis"/>
</appSettings>

I'd like to be able to encrypt just the database connection and yet leave
the other keys accessible so that they can be changed if required.

Is there a way to do that or do I have to encrypt the whole section to take
advantage of the automatic decryption provided by asp.net? Is there a tidy
alternative i.e. so that I can access all settings via
ConfigurationSettings.AppSettings["key"]?

Thanks!
.



Relevant Pages

  • Re: Encrypting SOME application settings
    ... "Alexey Smirnov" wrote: ... I'm looking for a tidy approach to this. ... I'd like to be able to encrypt just the database connection and yet leave ... Put the secret key to the special section (out of appSettings) like it ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Encrypting SOME application settings
    ... I'm looking for a tidy approach to this. ... I'd like to be able to encrypt just the database connection and yet leave ... Put the secret key to the special section (out of appSettings) like it ...
    (microsoft.public.dotnet.framework.aspnet)
  • Decryption within an application
    ... I need to encrypt one column of data in a single table and I pretty much ... encrpyted data and a one way hash for searches. ... I want the view to return the decrypted data only when the user is accessing ... database connection is established by the application and close it when the ...
    (microsoft.public.sqlserver.security)
  • Best Practices Question #3
    ... I am deploying a new asp.net web site on IIS. ... I want to encrypt my database connection strings... ...
    (microsoft.public.dotnet.framework.aspnet)