Encrypted Connection String

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

  1. #1

    Default 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
    call and decrypt them from the various .aspx pages that need the info.

    Thanks!


    Scott M. Guest

  2. Similar Questions and Discussions

    1. ASP.NET 2.0 Encrypted Connection String
      I have a question regarding the storage and encryption of connection string data within an ASP .Net application that I am writing. I am using ASP...
    2. Size of Entropy with Dpapi Encrypted Connection String
      Hi. I'm using the dpapi to encrypt a sql server connection string. Strictly speaking how many bytes of entropy am I supposed to use?? Phil...
    3. Decrypt string encrypted with SHA1
      No, it is not possible. SHA1 is a hashing algorithm and as any other hashing algorithm (e.g. MD5, SHA-256, etc) it does not support decryption. ...
    4. Encrypted connection to remote SQL SERVER
      Hi, I am having trouble making an encryped connection to an sql server over the internet, and would really appreciate some help. I have tried to...
    5. Reinstaled, Lost profiles, encrypted files left encrypted
      Bob; Are you sure it is not an Ownership issue: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q308421& If the files are encrypted. If...
  3. #2

    Default RE: Encrypted Connection String

    Hi Scott,

    Normmally, the client user can't access the web.config and we can consider
    the connection string is safe without encryption. If you do want to encrypt
    a string in web.config, you may take a look at classes in
    System.Security.Cryptography Namespace:

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

    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT Guest

  4. #3

    Default Re: Encrypted Connection String

    Hi Luke. Thanks for your reply. The link you posted will be helpful. The
    only comment I have is that "normally" the client user can't get the the
    source code of the ASP.NET page either, but we don't consider putting
    connection strings in them a safe thing to do so encryptioin AND using
    web.config gives us a second and third line of defense.



    "MSFT" <lukezhan@online.microsoft.com> wrote in message
    news:VZMs8xtwDHA.3972@cpmsftngxa07.phx.gbl...
    > Hi Scott,
    >
    > Normmally, the client user can't access the web.config and we can
    consider
    > the connection string is safe without encryption. If you do want to
    encrypt
    > a string in web.config, you may take a look at classes in
    > System.Security.Cryptography Namespace:
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/[/url]
    > frlrfSystemSecurityCryptography.asp
    >
    > Luke
    > Microsoft Online Support
    >
    > Get Secure! [url]www.microsoft.com/security[/url]
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >

    Scott M. Guest

  5. #4

    Default Re: Encrypted Connection String

    The November issue of MSDN magazine has an article on this
    topic.
    >-----Original Message-----
    >Hi Luke. Thanks for your reply. The link you posted
    will be helpful. The
    >only comment I have is that "normally" the client user
    can't get the the
    >source code of the ASP.NET page either, but we don't
    consider putting
    >connection strings in them a safe thing to do so
    encryptioin AND using
    >web.config gives us a second and third line of defense.
    >
    >
    >
    >"MSFT" <lukezhan@online.microsoft.com> wrote in message
    >news:VZMs8xtwDHA.3972@cpmsftngxa07.phx.gbl...
    >> Hi Scott,
    >>
    >> Normmally, the client user can't access the web.config
    and we can
    >consider
    >> the connection string is safe without encryption. If
    you do want to
    >encrypt
    >> a string in web.config, you may take a look at classes
    in
    >> System.Security.Cryptography Namespace:
    >>
    >>
    >[url]http://msdn.microsoft.com/library/default.asp?[/url]
    url=/library/en-us/cpref/html/
    >> frlrfSystemSecurityCryptography.asp
    >>
    >> Luke
    >> Microsoft Online Support
    >>
    >> Get Secure! [url]www.microsoft.com/security[/url]
    >> (This posting is provided "AS IS", with no warranties,
    and confers no
    >> rights.)
    >>
    >
    >
    >.
    >
    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