From owner-freebsd-bugs Thu Jul 13 15:56:40 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA01708 for bugs-outgoing; Thu, 13 Jul 1995 15:56:40 -0700 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA01699 for ; Thu, 13 Jul 1995 15:56:37 -0700 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.12/jtpda-5.0) with ESMTP id AAA05401 ; Fri, 14 Jul 1995 00:56:33 +0200 Received: from (roberto@localhost) by blaise.ibp.fr (8.6.12/jtpda-5.0) id AAA17088 ; Fri, 14 Jul 1995 00:56:33 +0200 From: roberto@blaise.ibp.fr (Ollivier Robert) Message-Id: <199507132256.AAA17088@blaise.ibp.fr> Subject: Re: OPIE and shadow passwords To: cmetz@sundance.itd.nrl.navy.mil (Craig Metz) Date: Fri, 14 Jul 1995 00:56:33 +0200 (MET DST) Cc: mjk@plaza.ds.adp.com, skey-users@thumper.bellcore.com, bugs@freebsd.org In-Reply-To: <9507132052.aa19902@cs.nrl.navy.mil> from "Craig Metz" at Jul 13, 95 03:52:18 pm X-Operating-System: FreeBSD BUILT-19950501 ctm#617 X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 999 Sender: bugs-owner@freebsd.org Precedence: bulk > that of the Solaris 2.x shadow password support, though I believe that > FreeBSD's shadow password system uses MD5 instead of crypt (which might > require an #ifdef around the call to crypt()). Not even so. I believe MD5 implementation of crypt is API-compatible with standard crypt(3). The only thing that change is the salt's length (not sure about that) and the total password length. One can check whether one is using MD5 by check for the "$1$" pattern at the head (cf the comment in libcrypt/crypt.c) static char *magic = "$1$"; /* * This string is magic for * this algorithm. Having * it this way, we can get * get better later on -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@FreeBSD.ORG FreeBSD keltia 2.0-BUILT-19950503 #3: Wed May 3 19:53:04 MET DST 1995