From owner-freebsd-questions Thu Oct 7 2:17:10 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 3BD14150EC for ; Thu, 7 Oct 1999 02:17:02 -0700 (PDT) (envelope-from arb@anand.org) Received: (qmail 4431 invoked by uid 1001); 7 Oct 1999 09:16:45 -0000 Date: Thu, 7 Oct 1999 12:16:45 +0300 From: Anand Buddhdev To: Tan Juay Kwang Cc: freebsd-questions@freebsd.org Subject: Re: crypt(3) Message-ID: <19991007121645.A4381@africaonline.co.ke> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: Organisation: Africa Online Ltd, P O Box 63017, Nairobi, Kenya X-Phone: +254-2-243775 X-WWW-Homepage: http://www.anand.org X-Duties: SysAdmin, Hostmaster, Postmaster, Programmer, Support Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 07, 1999 at 03:45:10PM +0800, Tan Juay Kwang wrote: You seem to have MD5 encryption installed instead of DES. If you look at your libcrypt.a, you'll see it is a link to libscrypt.a. Use sysinstall to install the DES library from a non-US mirror of FreeBSd, or from CDROM, if you have that. Then your libcrypt.a will be a link to libdescrypt.a, and you'll get DES encrypted passwords. > Hi, I have a freebsd 3.2 system and is having some problem with the > crypt(3) function. According to the man page, if I were to supply a 2 byte > salt, it will return the historical 13 byte string. However, it seems like > the one in 3.2 is not doing what is said in the man pages? > > Sample code and output :- > > printf("%s\n",crypt("a","_1234abcd")); > printf("%s\n", crypt("a","ab")); > > Output: > $1$_1234abc$zyNh.miJty685SsEEDPDT0 > $1$ab$NM4FR4Dl/CzoTSJTd3YJ3. > > Or is my way of using crypt(3) wrong in some way? > > Thanks and regards, > Juay Kwang > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- See complete headers for more info To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message