Date: Thu, 18 May 2000 18:38:51 -0700 (PDT) From: Ken Bolingbroke <hacker@bolingbroke.com> To: freebsd-questions@FreeBSD.ORG Subject: Re: MD5 --> DES ? Message-ID: <Pine.BSF.4.21.0005181832000.57443-100000@fremont.bolingbroke.com> In-Reply-To: <Pine.BSF.4.21.0005172146190.54152-100000@fremont.bolingbroke.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 17 May 2000, Ken Bolingbroke wrote: > So my question is, how do I create DES encrypted passwords from Perl? I > tried compiling a new perl binary pointing at libdescrypt, but somehow > crypt() still uses MD5. For the archives, here's what I ended up doing... Made a small test program using crypt() to see what's happening. Compiling with -ldescrypt still makes a binary that uses MD5. A friend, more experienced in these matters than I, rooted around and says: It turns out that when FreeBSD compiles libscrypt and libdescrypt, they use a tricky argument to the linker that causes it to always link with libcrypt instead. So even if you specify libscrypt or libdescrypt on the link line, it gets translated to libcrypt. Is that a bug? In any case, I switched the libcrypt* links to DES, compiled static, then switched the links back to MD5, and now I have what I wanted, the ability to make DES passwords on a MD5 system... Ken Bolingbroke hacker@bolingbroke.com 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?Pine.BSF.4.21.0005181832000.57443-100000>