Where to store your salt

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

  1. #1

    Default Where to store your salt

    Reviewing the code in "Building Secure Microsoft ASP.NET Applications" for
    hashing passwords with salt, I see that the salt is stored in the same table
    as the hashed password. The idea of using salt is to make a dictionary
    attack harder but if we store the salt close to the hashed password then the
    attacker can attach the salt to the dictionary passwords and go on with
    his/her attack. For what I understood of the salting technique, the salt
    should be saved somewhere else, is this right or I am missing something?


    Edgar Sánchez Guest

  2. Similar Questions and Discussions

    1. where to store encryption key?
      i am trying to set up an application that is reasonably secure.... trying to protect the most sensitive data (cc info) in case ftp access is...
    2. about flex store example
      Hi all, I want to add some nodes in the catalog.xml(about flex store example), I know it should been change the catalog.java and product.java, but...
    3. Crypt SALT value
      I'm trying to translate a function from a perl script to C++. The perl script is: $passwdcrypt = crypt($data_access, SALT); This passwd is used...
    4. Store files in DB
      You can use image as the datatype. It is a binary datatype with a storage limit of 2 GB -- Jacco Schalkwijk MCDBA, MCSD, MCSE Database...
    5. Store pdf's
      You can store documents in SQL Server as (N)TEXT columns. See the following links for more details: Reading and Writing BLOBs (.NET) ==>...
  3. #2

    Default Re: Where to store your salt

    Some people store the salt in the web.config.

    "Edgar Sánchez" <edgar.sanchez@logicstudio.net> wrote in message
    news:%23xEGHwi4DHA.504@TK2MSFTNGP11.phx.gbl...
    > Reviewing the code in "Building Secure Microsoft ASP.NET Applications" for
    > hashing passwords with salt, I see that the salt is stored in the same
    > table
    > as the hashed password. The idea of using salt is to make a dictionary
    > attack harder but if we store the salt close to the hashed password then
    > the
    > attacker can attach the salt to the dictionary passwords and go on with
    > his/her attack. For what I understood of the salting technique, the salt
    > should be saved somewhere else, is this right or I am missing something?
    >
    >
    Ken Cox [Microsoft MVP] Guest

  4. #3

    Default Re: Where to store your salt

    On Fri, 23 Jan 2004 22:41:26 -0500, Edgar Sánchez wrote:
    > Reviewing the code in "Building Secure Microsoft ASP.NET Applications" for
    > hashing passwords with salt, I see that the salt is stored in the same table
    > as the hashed password. The idea of using salt is to make a dictionary
    > attack harder but if we store the salt close to the hashed password then the
    > attacker can attach the salt to the dictionary passwords and go on with
    > his/her attack. For what I understood of the salting technique, the salt
    > should be saved somewhere else, is this right or I am missing something?
    Salt values are primarily used to prevent dictionary attacks using
    pre-computed hashes. It's better to store it separately, but unless they
    have already computed the hashes for their dictionary using the exact same
    salt value they still have work to do.

    -Derek

    Derek Slager 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