Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 1999 17:16:42 +0300
From:      Anand Buddhdev <arb@anand.org>
To:        Adam Nealis <adamn@csl.com>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to use "traditional crypt"
Message-ID:  <19990714171642.B15598@africaonline.co.ke>
In-Reply-To: <378C7B27.AA43AF2F@csl.com>; from Adam Nealis on Wed, Jul 14, 1999 at 12:57:27PM %2B0100
References:  <378C7B27.AA43AF2F@csl.com>

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




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