From owner-freebsd-questions Wed Jul 14 7:17:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pasha.anand.org (pasha.anand.org [199.103.176.41]) by hub.freebsd.org (Postfix) with SMTP id B118614CC9 for ; Wed, 14 Jul 1999 07:17:05 -0700 (PDT) (envelope-from arb@anand.org) Received: (qmail 15772 invoked by uid 1001); 14 Jul 1999 14:16:42 -0000 Date: Wed, 14 Jul 1999 17:16:42 +0300 From: Anand Buddhdev To: Adam Nealis Cc: freebsd-questions Subject: Re: How to use "traditional crypt" Message-ID: <19990714171642.B15598@africaonline.co.ke> References: <378C7B27.AA43AF2F@csl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <378C7B27.AA43AF2F@csl.com>; from Adam Nealis on Wed, Jul 14, 1999 at 12:57:27PM +0100 Organisation: Africa Online Ltd, P O Box 63017, Nairobi, Kenya X-Phone: +254-2-243775 X-WWW-Homepage: http://www.anand.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jul 14, 1999 at 12:57:27PM +0100, Adam Nealis wrote: You currently have the MD5 encryption library installed, libscrypt.a. Therefore the passwords you will see are long, and begin with $1$. You need the DES library, called libdescrypt.a. You can download and install this from any of FreeBSD's international mirrors. Use /stand/sysinstall, go to the distributions, and select DES. > I have a FreeBSD box with 2.2.7-STABLE on it, and > non-traditional encryption installed: > > ls -l /usr/lib/libcrypt* > > lrwxrwxrwx 1 root bin 11 Oct 13 1998 /usr/lib/libcrypt.a > -> libscrypt.a > lrwxrwxrwx 1 root bin 16 Oct 13 1998 > /usr/lib/libcrypt.so.2.0 -> libscrypt.so.2.0 > lrwxrwxrwx 1 root bin 15 Oct 14 1998 > /usr/lib/libcrypt_p.a -> libdescrypt_p.a > > For a resaon to do with some web authentication on an > offsite server we have bought space on, I have a need to > generate encrypted passwords in traditional, 13 character > UNIX style. > > At present, a short C stub, when compiled and run with > > bash-2.01# cc pw.c -lcrypt > bash-2.01# ./a.out > $1$_pa$DxOQFT8SEpBphLqHX/W4g1 > > is spitting out 32 character passwords. -- Anand To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message