Date: Tue, 10 Jul 2001 13:06:01 +1000 From: Gregory Bond <gnb@itga.com.au> To: stable@freebsd.org Subject: Generating encrypted passwords Message-ID: <200107100306.NAA21657@lightning.itga.com.au>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107100306.NAA21657>