From owner-freebsd-current@FreeBSD.ORG Sat Nov 13 17:29:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81B4216A4CE for ; Sat, 13 Nov 2004 17:29:38 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DED4643D45 for ; Sat, 13 Nov 2004 17:29:37 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id iADHTaxi032654; Sat, 13 Nov 2004 18:29:36 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Ivan Voras From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 13 Nov 2004 18:27:38 +0100." <4196440A.7050706@fer.hr> Date: Sat, 13 Nov 2004 18:29:36 +0100 Message-ID: <32653.1100366976@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: current@freebsd.org Subject: Re: Passwd format? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2004 17:29:38 -0000 In message <4196440A.7050706@fer.hr>, Ivan Voras writes: >Poul-Henning Kamp wrote: >> In message <4196398D.2030000@fer.hr>, Ivan Voras writes: >> >>>The Handbook and crypt(3) say passwords in master.passwd are MD5 hashes >>>if they start with $1$, for example: >>> >>>$1$DP.s8oCc$VJo0/026/S5ng6HlD1Sz8/ >>> >>>the format is $1$salt$rest. I have several questions: >>> >>>How are the values encoded? This looks something like base64. > >> Search for "md5crypt.c" in google and you'll find the source. > >This looks like it: >http://mia.ece.uic.edu/cgi-bin/lxr/http/source/md5crypt.c?v=openssh-3.5p1 > >It seems it's definitely NOT reusable in LDAP :( Why not ? Cisco uses it in their routers, Juniper uses it in their routers. It's used in Flash animations, FreeBSD systems and Linux systems alike. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.