From owner-freebsd-stable Tue Jul 10 11:48:58 2001 Delivered-To: freebsd-stable@freebsd.org Received: from pc1-cove4-0-cust214.bir.cable.ntl.com (pc1-cove4-0-cust214.bir.cable.ntl.com [213.105.93.214]) by hub.freebsd.org (Postfix) with ESMTP id 965C037B401 for ; Tue, 10 Jul 2001 11:48:46 -0700 (PDT) (envelope-from ianjhart@freeloader.freeserve.co.uk) Received: (from root@localhost) by pc1-cove4-0-cust214.bir.cable.ntl.com (8.11.3/8.11.3) id f6AImg633843; Tue, 10 Jul 2001 19:48:42 +0100 (BST) (envelope-from ianjhart@freeloader.freeserve.co.uk) Received: from freeloader.freeserve.co.uk (alpha.private [192.168.0.2]) by pc1-cove4-0-cust214.bir.cable.ntl.com (8.11.3/8.11.3av) with ESMTP id f6AImYw33836; Tue, 10 Jul 2001 19:48:34 +0100 (BST) (envelope-from ianjhart@freeloader.freeserve.co.uk) Message-ID: <3B4B4E02.3F3173B4@freeloader.freeserve.co.uk> Date: Tue, 10 Jul 2001 19:48:34 +0100 From: ian j hart X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Gregory Bond Cc: stable@freebsd.org Subject: Re: Generating encrypted passwords References: <200107100306.NAA21657@lightning.itga.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-10 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 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.) > > Is this something worth adding to (e.g.) pw(8)? If so, I can whip up some > patches..... > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message Does htpasswd (with apache) do what you want? -- ian j hart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message