Re: Values to use for a salt?

From: Brian Hatch (bri_at_ifokr.org)
Date: 12/19/03

  • Next message: Scott Cleven-Mulcahy: "RE: Values to use for a salt?"
    Date: Fri, 19 Dec 2003 09:35:15 -0800
    To: "Fletcher, Stephen J" <stephen.fletcher@eds.com>
    
    
    

    > How does an md5 crypt style hash store the salt? ie. the password hashes
    > that begin with $1$
    > If you use a large salt such as 32 characters does the entire salt get used
    > or only a part of it?

    DES-based crypt uses a salt that's the first two chars of
    the hashed passwd:

            UWOluFloQB3BI salt is UW

    Other unix crypt methods indicate which kind of hash
    is being used between the first set of $ signs, the
    salt between the next set, and the resulting hash at
    the end.

            $1$2vW1uUxa$YKbRhlaRFsXJuEwjwvGEQ1

            type is md5 (from the '$1$' part)
            Salt is 2vW1uUxa
            Resulting hash is YKbRhlaRFsXJuEwjwvGEQ1

    --
    Brian Hatch                  I don't speak for
       Systems and                anyone else.  I
       Security Engineer          do speak to
    http://www.ifokr.org/bri/     myself though.
    Every message PGP signed
    
    



  • Next message: Scott Cleven-Mulcahy: "RE: Values to use for a salt?"

    Relevant Pages

    • Re: Is this secure
      ... What I do in my business layer I get the salt, then I use my custom classes ... to hash the passed in password then send the Hash to a Stored Proc to ... Both the hashed password and salt are stored in the database. ... but then i'd need the salt to create a saltedhash to ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Can Kerberos be cracked??
      ... Subject: Can Kerberos be cracked?? ... A "salt" is a "random" value that is appended to the ... possible for you to dictionary-crack my password unless you know the ... >> In order to get the hash you would need to launch a brute force attack ...
      (Focus-Microsoft)
    • Re: Is this secure
      ... I use SHA1 to hash my passwords. ... Both the hashed password and salt are stored in the database. ... but then i'd need the salt to create a saltedhash to compare ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Is this secure
      ... I use SHA1 to hash my passwords. ... Both the hashed password and salt are stored in the database. ... but then i'd need the salt to create a saltedhash to compare ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Is this secure
      ... I use SHA1 to hash my passwords. ... Both the hashed password and salt are stored in the database. ... but then i'd need the salt to create a saltedhash to compare ...
      (microsoft.public.dotnet.framework.aspnet)