Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jun 2012 09:43:03 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= <des@des.no>
Cc:        freebsd-security@freebsd.org, "freebsd-cur >> Current FreeBSD" <freebsd-current@FreeBSD.org>
Subject:   Re: Default password hash
Message-ID:  <4FD2FE87.1060708@zedat.fu-berlin.de>
In-Reply-To: <86r4tqotjo.fsf@ds4.des.no>
References:  <86r4tqotjo.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 06/08/12 14:51, Dag-Erling Smørgrav wrote:
> We still have MD5 as our default password hash, even though known-hash
> attacks against MD5 are relatively easy these days.  We've supported
> SHA256 and SHA512 for many years now, so how about making SHA512 the
> default instead of MD5, like on most Linux distributions?
> 
> Index: etc/login.conf
> ===================================================================
> --- etc/login.conf      (revision 236616)
> +++ etc/login.conf      (working copy)
> @@ -23,7 +23,7 @@
>  # AND SEMANTICS'' section of getcap(3) for more escape sequences).
> 
>  default:\
> -       :passwd_format=md5:\
> +       :passwd_format=sha512:\
>         :copyright=/etc/COPYRIGHT:\
>         :welcome=/etc/motd:\
>         :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
> 
> DES

You should also file a PR for change-requets, so it is not only in the
email list. I second a change, since I use "blf" since 2009 without
(obvious) problems.

The manpage for login.conf also needs an update. I checked this morning
and found that thye manpage doesn't even mention hashes apart from des,
md5 and blf.

Oliver


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJP0v6OAAoJEOgBcD7A/5N8cLsH/i3nLMA3KruJ1Jv0zx/vOI0t
4pRMVVuDQvoDXoBtbAgrv3pRBMJ/EdHhgd3giAw8MB16MBvN/JO5ilBZx3ox+nCm
7Jqa5Ga9hTLZmnYv7hBbQhDVSdikOVSlGYM2SGTOowxW6xDsiYnfrDyBPmFMEJ8j
Mi3uLjH985yWlVls6qHzsnMhIRCt8J8KsxKdN6Fb2T2wz6v4ihy1x3V5JBPo1Tgu
bWiT/DKEhzpgouiyhyR4F2GP25qJZawDn6Pbt99eSpUwuCTPxqH/WEm7shxxS7+1
064zF8RHi3mPuhqjtIjoJCz+v3+qTyWYWWe++7tGu/zsshRkN7T8j77lwe3Jejs=
=Veyv
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD2FE87.1060708>