From owner-freebsd-questions@FreeBSD.ORG Mon Jan 8 19:14:21 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7464316A508 for ; Mon, 8 Jan 2007 19:14:21 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 30C6713C458 for ; Mon, 8 Jan 2007 19:14:21 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H3zwi-0003d7-OZ for freebsd-questions@freebsd.org; Mon, 08 Jan 2007 20:14:12 +0100 Received: from 89-172-37-249.adsl.net.t-com.hr ([89.172.37.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jan 2007 20:14:12 +0100 Received: from ivoras by 89-172-37-249.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Jan 2007 20:14:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Mon, 08 Jan 2007 20:14:00 +0100 Lines: 42 Message-ID: References: <45A22099.3060208@esiee.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig378E74721C2038F4641D0B66" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-37-249.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: X-Enigmail-Version: 0.94.1.2 Sender: news Subject: Re: Adduser utility to generate "random" passwds ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 19:14:21 -0000 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--