Date: Sat, 19 Dec 1998 02:51:57 -0500 From: Harlan Stenn <Harlan.Stenn@pfcs.com> To: questions@FreeBSD.ORG Subject: crypt() and DES *or* MD5 passwords Message-ID: <10205.914053917@brown.pfcs.com>
next in thread | raw e-mail | index | archive | help
Perhaps I'm doing something wrong. I've got the secure distribution installed. I have a password file that has *mixed* MD5 and DES passwords in it - some are legacy POP passwords, and they're in DES format now. >From reading the man page, if the salt does not begin with _ or $, it should be taken as a DES salt, and I would *expect* that crypt() would generate a DES password from the key. crypt() generates an MD5 password unless I link with -ldescrypt. This seems wrong to me - I'd expect crypt() to generate an encrypted key using the provided key *in the form specified by the salt*. Am I missing something? How can I get a single crypt() function that will do this? H 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?10205.914053917>