Re: MD5 password salt calculation

From: Jacques A. Vidrine (n@nectar.cc)
Date: 12/30/01


Date: Sun, 30 Dec 2001 00:02:48 -0600
From: "Jacques A. Vidrine" <n@nectar.cc>
To: Allen Landsidel <all@biosys.net>

On Sun, Dec 30, 2001 at 12:58:08AM -0500, Allen Landsidel wrote:
> Using something like strftime(3) defeats this, depending on the format used
> in the call. If you have 256 possible salts, then an attacker may be
> dissuaded from generating the lookup.

Actually, even really isn't enough salt, and is one of the several
problems with the traditional UNIX crypt scheme.

> If you only have 24 (say strftime
> was called to generate a normal human-readable time, and the two characters
> for the hour were used) then the purpose behind the salt is entirely
> defeated, and may as well be left off just to make the code cleaner.

Yes, that would be bad. But that's not what the original poster
described.

Cheers,

-- 
Jacques A. Vidrine <n@nectar.cc>                 http://www.nectar.cc/
NTT/Verio SME          .     FreeBSD UNIX     .       Heimdal Kerberos
jvidrine@verio.net     .  nectar@FreeBSD.org  .          nectar@kth.se
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message


Relevant Pages

  • Re: Importance of salt
    ... generate a key which is then used for encryption. ... The salt is used on ... The attacker really couldn't use his ... As for the iteration count... ...
    (microsoft.public.dotnet.security)
  • Re: Importance of salt
    ... That is the problem with using one-way hash ... The salt is used on ... The attacker really couldn't use his ... > even knows the correct iteration count used. ...
    (microsoft.public.dotnet.security)
  • Re: password salting
    ... For attacker, I assume pre-computed hash tables are just not that helpful ... You can only add so many iterations to ... |> If you have the salt and the hash, the salt does not make attacking ...
    (microsoft.public.dotnet.security)
  • Re: Hashed password secure?
    ... ]> The stupidly written BSD md5 based unix password function simply runs the ... ]> hash 1000 times to try to slow it down. ... ]impossible for some attacker to create a dictionary of hashes ... As machines get faster, the salt will get more bits, so it ...
    (sci.crypt)
  • Re: Hashed password secure?
    ... > Consider the way that a typical password hash attack program works. ... > the salt, and then it hashes the dictionary once for each unique salt value ... So the attacker has to hash the dictionary 2^16 ... want to not store his dictionaries, he'd have to try on average half his ...
    (sci.crypt)