DB Connection String

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default DB Connection String

    Hi,

    I need to store the database connection string inside web.config file. What
    would be the best way to encrypt and decrypt it?

    Thanks,
    Ali


    A.M Guest

  2. Similar Questions and Discussions

    1. need help with connection string
      i keep reading that it is not secure to hard code the connection string to the server into my swf. so how can i get the string into my swf without...
    2. connection string
      Hi there, I have recently changed the connection string on a site that was working perfectly. I used an OLE DB connection with this code: var...
    3. String in Web.config to specify AD connection
      I run a .NET based portal product. I am using windows authentication. This mode of authentication and the string specifying the connection to AD...
    4. 'Connection String not work'..
      I have this code looking at a registered dll, but i keep getting.. Object doesn't support this property or method: 'ConnectionString' line 9 <%...
    5. Encrypted Connection String
      How would I go about taking my DB connection strings and putting them into my Web.Config file in encrypted form? Of course, I'd need to know how to...
  3. #2

    Default Re: DB Connection String

    The Configuration Management Application Block has nice built in support for
    this as well as some other useful features. You might give that a swing.

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp?frame=true[/url]

    Joe K.

    "A.M" <IHateSpam@sapm123.com> wrote in message
    news:%23exvUji3DHA.2168@TK2MSFTNGP12.phx.gbl...
    > Hi,
    >
    > I need to store the database connection string inside web.config file.
    What
    > would be the best way to encrypt and decrypt it?
    >
    > Thanks,
    > Ali
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  4. #3

    Default Re: DB Connection String

    Ali,

    Check this tool: [url]http://www.obviex.com/cipherlite/[/url]. It is not very secure,
    though (but neither is Configuration Management Application Block, since -
    if I understand it correctly - it requires the encryption key to be stored
    in plain text on the same system). Anyway, either option is still better
    than keeping data unencrypted.

    Alek

    "A.M" <IHateSpam@sapm123.com> wrote in message
    news:%23exvUji3DHA.2168@TK2MSFTNGP12.phx.gbl...
    > Hi,
    >
    > I need to store the database connection string inside web.config file.
    What
    > would be the best way to encrypt and decrypt it?
    >
    > Thanks,
    > Ali
    >
    >

    Alek Davis Guest

  5. #4

    Default Re: DB Connection String

    Actually, the CMAB have a built-in security provider (DPAPIDataProtection
    implementation) that no needs any key management to protect sensitive data.

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp[/url]




    --
    Hernan de Lahitte - MSDE
    Lagash Systems S.A. - Buenos Aires, Argentina
    [url]http://www.lagash.com[/url]



    "Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com> wrote in message
    news:#fqIjsv3DHA.2404@TK2MSFTNGP12.phx.gbl...
    > Ali,
    >
    > Check this tool: [url]http://www.obviex.com/cipherlite/[/url]. It is not very secure,
    > though (but neither is Configuration Management Application Block, since -
    > if I understand it correctly - it requires the encryption key to be stored
    > in plain text on the same system). Anyway, either option is still better
    > than keeping data unencrypted.
    >
    > Alek
    >
    > "A.M" <IHateSpam@sapm123.com> wrote in message
    > news:%23exvUji3DHA.2168@TK2MSFTNGP12.phx.gbl...
    > > Hi,
    > >
    > > I need to store the database connection string inside web.config file.
    > What
    > > would be the best way to encrypt and decrypt it?
    > >
    > > Thanks,
    > > Ali
    > >
    > >
    >
    >

    Hernan de Lahitte Guest

  6. #5

    Default Re: DB Connection String

    Yes, but DPAPI has quite a few limitations. For example, in the plain form,
    it cannot be used by ASP.NET (or any other Web) applications, and the
    question was about Web.config, so DPAPI is not going to help here.

    Alek

    "Hernan de Lahitte" <hernan@lagash.com> wrote in message
    news:uGPyVz13DHA.1804@TK2MSFTNGP12.phx.gbl...
    > Actually, the CMAB have a built-in security provider (DPAPIDataProtection
    > implementation) that no needs any key management to protect sensitive
    data.
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp[/url]
    >
    >
    >
    >
    > --
    > Hernan de Lahitte - MSDE
    > Lagash Systems S.A. - Buenos Aires, Argentina
    > [url]http://www.lagash.com[/url]
    >
    >
    >
    > "Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com> wrote in message
    > news:#fqIjsv3DHA.2404@TK2MSFTNGP12.phx.gbl...
    > > Ali,
    > >
    > > Check this tool: [url]http://www.obviex.com/cipherlite/[/url]. It is not very
    secure,
    > > though (but neither is Configuration Management Application Block,
    since -
    > > if I understand it correctly - it requires the encryption key to be
    stored
    > > in plain text on the same system). Anyway, either option is still better
    > > than keeping data unencrypted.
    > >
    > > Alek
    > >
    > > "A.M" <IHateSpam@sapm123.com> wrote in message
    > > news:%23exvUji3DHA.2168@TK2MSFTNGP12.phx.gbl...
    > > > Hi,
    > > >
    > > > I need to store the database connection string inside web.config file.
    > > What
    > > > would be the best way to encrypt and decrypt it?
    > > >
    > > > Thanks,
    > > > Ali
    > > >
    > > >
    > >
    > >
    >
    >

    Alek Davis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139