Subject: Re: command line DES/MD5 encryption
To: John Maier <jmaier@midamerica.net>
From: Alistair Crooks <agc@wasabisystems.com>
List: netbsd-users
Date: 07/23/2003 22:55:51
On Wed, Jul 23, 2003 at 02:15:51PM -0500, John Maier wrote:
> I have a user management utility I wrote, and I would like to update it to
> use the
> new MD5 algorithm (longer passwords, better security, etc).
> 
> I could write a small C program using the passwd.c source code, but if there
> is a command line utility for taking a password and encrypting it, I see no
> need in replicating work.
> 
> I think, when I originally wrote the script in 1.5 days, there was no such
> NetBSD utility.  I always thought this was silly since useradd/usermod only
> accepts an encrypted password, otherwise you have to use the passwd command.
> 
> It's like giving a person an airplane without wings, and telling the person
> they have to build the wings before you can fly the plane, otherwise fly
> commercial.

pwhash(1)

Regards,
Alistair