From owner-freebsd-security Wed May 2 13:28:48 2001 Delivered-To: freebsd-security@freebsd.org Received: from nisser.com (c0039.upc-c.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 75F5F37B423 for ; Wed, 2 May 2001 13:28:28 -0700 (PDT) (envelope-from roelof@eboa.com) Received: from eboa.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id WAA21496; Wed, 2 May 2001 22:28:24 +0200 (CEST) (envelope-from roelof@eboa.com) Message-ID: <3AF06DE8.B1640026@eboa.com> Date: Wed, 02 May 2001 22:28:24 +0200 From: Roelof Osinga Organization: eBOA - Programming the Web X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Brian Tiemann Cc: freebsd-security@FreeBSD.ORG Subject: Re: useradd/adduser References: <200105021707.KAA06632@smtpout.mac.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Brian Tiemann wrote: > > ... > Okay, so... maybe I'm missing something, but how does one go about > encrypting the password in a way compatible with master.passwd? Straight > md5 doesn't do it... how do you get the "$1$7tGUS$teGz..." string? The '1$1' denotes the encryption method used, being MD5. There's a nice PHP scriptlet I stumbled onto that works fine. It's on http://www.php.net/manual/en/function.crypt.php by rtdean@cytherianage.net. What you're missing is probably the right amount of salt. Roelof PS there's probably code all over the place but this I had handy -- ----------------------------------------------------------------------- eBOAź est. 1982 tel. +31-58-2123014 web. http://eBOA.com/ fax. +31-58-2160293 mail info@eBOA.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message