From owner-freebsd-stable Mon Jul 9 20:12: 3 2001 Delivered-To: freebsd-stable@freebsd.org Received: from vimfuego.saarinen.org (saarinen.org [203.79.82.14]) by hub.freebsd.org (Postfix) with ESMTP id 3339A37B401 for ; Mon, 9 Jul 2001 20:12:00 -0700 (PDT) (envelope-from juha@saarinen.org) Received: from vimfuego.saarinen.org ([192.168.1.1]) by vimfuego.saarinen.org with esmtp (Exim 3.22 #1 (Red Hack)) id 15JnwK-0004mZ-00; Tue, 10 Jul 2001 15:11:56 +1200 Date: Tue, 10 Jul 2001 15:11:56 +1200 (NZST) From: Juha Saarinen To: Gregory Bond Cc: "stable@freebsd.org" Subject: Re: Generating encrypted passwords In-Reply-To: <200107100306.NAA21657@lightning.itga.com.au> Message-ID: X-S: Always MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 10 Jul 2001, Gregory Bond wrote: > I need to generate some encrypted passwords in a config file for an > application (i.e. not in /etc/master.passwd). > > AFAICT there are no utilities in FreeBSD 4 that will do this. So I whipped up a > 10-line perl script to build a random salt, get the password and call crypt(). > This is OK, but uglier and harder than it needs to be (as I had to fossick > around a bit to find the right way to generate a salt.) Here's another example: http://www.lanexperts.com/mengle/programming/perl/genpw/genpw.pl -- Regards, Juha PGP fingerprint: B7E1 CC52 5FCA 9756 B502 10C8 4CD8 B066 12F3 9544 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message