Date: Mon, 08 Jan 2007 20:14:00 +0100 From: Ivan Voras <ivoras@fer.hr> To: freebsd-questions@freebsd.org Subject: Re: Adduser utility to generate "random" passwds ? Message-ID: <enu55q$ust$1@sea.gmane.org> In-Reply-To: <ent9pr$r1d$1@sea.gmane.org> References: <45A22099.3060208@esiee.fr> <ent9pr$r1d$1@sea.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig378E74721C2038F4641D0B66 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ivan Voras wrote: > Frank Bonnet wrote: >=20 >> I want to generate new "strong" password for existing users. >=20 > Here's an idea: >=20 > $ head -c 64 /dev/random | md5 | head -c 10 =2E.. or, following the upthread discussion, a preferable alternative: > openssl rand -base64 6 This will generate a strong password of 8 characters[*] with 6 bits of entropy each (48 bits total), which is as strong as it gets. [*] literally: 6 random bytes encoded with base64 to 8 ASCII characters --------------enig378E74721C2038F4641D0B66 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFopf4ldnAQVacBcgRApmjAJwPwcgdTM4YY8aWs8Xry5A7u9rINQCg7VX/ gaCOTfSTUxbrq+QVGQbKWIQ= =fOhg -----END PGP SIGNATURE----- --------------enig378E74721C2038F4641D0B66--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?enu55q$ust$1>