Where to store UserID/Password

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

  1. #1

    Default Where to store UserID/Password

    Hi,
    Where can I store username password information my ASP.NET project.
    I am not using any database.
    I preferred to store in Application Configuration File.
    Suggestions are welcome.
    --
    Rgds,
    Fernandez
    Fernandez Guest

  2. Similar Questions and Discussions

    1. checking userid and password against windows domain (Active directory)
      hi. to prevent separate systems with different accounts, i am looking for a perl module that will allow me to check the userID (username) and...
    2. UserId
      I have created a login page and a order page. The problem I am have is when I submit a order I need the users id to be put in the userId column of...
    3. userid and password in html ?
      I need to link to a 2nd web site/page (different host name) from a link on my primary web page. i.e. from a page on www.pcwp.com I need to link...
    4. DB2 v7.2 AIX fenced-userid change ?
      Is it possible to change the fenced-userid for an instance, without dropping and re-creating that instance ? Environment: AIX and DB2 version 7.2...
    5. Userid & password fail for newlist
      My userid and password are sufficient for me to post to http://webforums.macromedia.com/dreamweaver but fail when I attempt to post directly to any...
  3. #2

    Default Re: Where to store UserID/Password

    Configuration files are definetly a bad place to store sensitive data like
    user credentials. Here you have some guidelines about storing sensitive data
    on config files:
    [url]http://msdn.microsoft.com/msdnmag/issues/03/11/ProtectYourData/default.aspx[/url]

    You don't have a silver bullet here but you should add as many security
    levels as you can (defense in deep).
    One common approach is to store a regristry path in your config file and
    save in that registry entry (with strong ACL) the encrypted data with DPAPI
    (local machine mode). You just have a tool that do this here:
    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;329290[/url]

    Then you have to decrypt this data and here you have this sample:

    string decryptedData = Encoding.Unicode.GetString( ProtectedData.Decrypt(
    registryBytes ) );

    ProtectedData is the managed DPAPI wrapper in the Open Source NCrypto
    proyect.
    registryBytes is the byte array from the registry entry that create the tool
    mentioned above.

    You may get the NCrypto proyect from here:
    [url]http://sourceforge.net/projects/ncrypto/[/url]


    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://weblogs.asp.net/hernandl[/url]


    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Fernandez" <Fernandez@discussions.microsoft.com> wrote in message
    news:48ECBF4D-BB12-435A-A503-22F6795E2E0F@microsoft.com...
    > Hi,
    > Where can I store username password information my ASP.NET project.
    > I am not using any database.
    > I preferred to store in Application Configuration File.
    > Suggestions are welcome.
    > --
    > Rgds,
    > Fernandez

    Hernan de Lahitte 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