From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 16:14:38 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB2401065670 for ; Wed, 11 Jun 2008 16:14:38 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23]) by mx1.freebsd.org (Postfix) with ESMTP id 7D7338FC19 for ; Wed, 11 Jun 2008 16:14:38 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr3.xs4all.nl (8.13.8/8.13.8) with ESMTP id m5BGEbho056097; Wed, 11 Jun 2008 18:14:37 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id BA7FDBA8F; Wed, 11 Jun 2008 18:14:36 +0200 (CEST) Date: Wed, 11 Jun 2008 18:14:36 +0200 From: Roland Smith To: Zbigniew Szalbot Message-ID: <20080611161436.GA9276@slackbox.xs4all.nl> References: <484F7CBE.5060401@lc-words.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <484F7CBE.5060401@lc-words.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: generating random passwords 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: Wed, 11 Jun 2008 16:14:39 -0000 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 11, 2008 at 09:20:30AM +0200, Zbigniew Szalbot wrote: > Hello, >=20 > Excuse me my ignorance. Is there a utility in FreeBSD that would allow=20 > me to generate random passwords without actually creating any accounts=20 > or modifying existing ones? I am looking for something to allow me to=20 > generate a random string of characters. I know I can randomly hit the=20 > keyboard but if anything like that exists, many thanks for your advice. :) Using FreeBSD's random device: tcsh syntax: ( dd if=3D/dev/random bs=3D6 count=3D1 | openssl base64 > /dev/tty ) > & /d= ev/null sh syntax: dd if=3D/dev/random bs=3D6 count=3D1 2>/dev/null| openssl base64 Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhP+ewACgkQEnfvsMMhpyVuzgCgq2FbUCl9h+r9YgfbLATCWUoZ /aIAn2MDW/U2r9jf1OyHNgYUt2tIdRH/ =xmTx -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--