Re: Can the config file be encrypted?

From: Claes Bergefall (claes.bergefall_at_online.nospam)
Date: 07/23/04


Date: Fri, 23 Jul 2004 09:56:25 +0200

Not if you want to use the ConfigurationSettings class
You'll have to read and parse it yourself

Why not just encrypt the UID and password before storing them in the config
file?
Then you don't need to encrypt the entire file

"Bill" <nfr@nospam.com> wrote in message
news:eWudZPAcEHA.2504@TK2MSFTNGP12.phx.gbl...
> I am concerned about storing sensitive information such as UID and
passwords
> in the config file. Can this file be stored encrypted?
>
>



Relevant Pages

  • Re: Help Encrypting Connection String
    ... the tool you are referring to is called aspnet_setreg - it uses DPAPI to encrypt the section and places it into web.config - the config file then refers to the reg key. ... You can also use the Ent Lib cryptography block to encrypt and decrypt arbitrary strings, so that will certainly work for what you want to do. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Encrypt values for a key in appsettings
    ... Actually i need to encrypt only the password fields and decrypt the ... TripleDESCryptoServiceProvider to encrypt the password. ... Key can be placed in config file. ... You don't have to decrypt the data when using the ProtectSection ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Web.config encryption in shared hosting scenario
    ... Open the config using WebConfigurationManager, get the section using GetSection, and call Protect() on the SectionInformation you get back. ... database via SQL authentication rather than Windows authentication, ... best practice dictates that I encrypt the web.config file ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Save passwords in scripts
    ... I was using a the ConfigParser module to store other info in a config ... characters) and cleared the entries in the config file. ... Rotor module to encrypt the string, UUencoded the result and stored the ... UUencoded result in a special config entry. ...
    (comp.lang.python)
  • Re: Storing a private key
    ... Storing secrets is a hard problem. ... I have a server and client program. ... The server also uses the same public key to encrypt other files it has ...
    (microsoft.public.dotnet.security)