Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 May 2001 22:28:24 +0200
From:      Roelof Osinga <roelof@eboa.com>
To:        Brian Tiemann <btman@mac.com>
Cc:        freebsd-security@FreeBSD.ORG
Subject:   Re: useradd/adduser
Message-ID:  <3AF06DE8.B1640026@eboa.com>
References:  <200105021707.KAA06632@smtpout.mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <g>

-- 
-----------------------------------------------------------------------
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AF06DE8.B1640026>