[ale] Passwd replacement

Joe Steele joe at madewell.com
Mon Jan 28 17:38:32 EST 2002


crypt() can use either a DES or MD5 algorithm.  The algorithm used depends 
on the format of the salt.  To quote from the Docs:

     For the MD5-based algorithm, the SALT should consist of the string
     `$1$', followed by up to 8 characters, terminated by either
     another `$' or the end of the string.  The result of `crypt' will
     be the SALT, followed by a `$' if the salt didn't end with one,
     followed by 22 characters from the alphabet `./0-9A-Za-z', up to
     34 characters total.  Every character in the KEY is significant.

     For the DES-based algorithm, the SALT should consist of two
     characters from the alphabet `./0-9A-Za-z', and the result of
     `crypt' will be those two characters followed by 11 more from the
     same alphabet, 13 in total.  Only the first 8 characters in the
     KEY are significant.  If the `crypt' add-on is not installed,
     trying to use the DES-based algorithm will return an empty string
     and set `errno' to `EOPNOTSUPP'.


--Joe


-----Original Message-----
From:	Calvin Harrigan [SMTP:charrig at earthlink.net]
Sent:	Monday, January 28, 2002 4:12 PM
To:	ale at ale.org
Subject:	[ale] Passwd replacement

Greetings,

Is there an MD5 version of crypt()?  What I want to do is setup a ftp password file that's seperate from the system password file to allow login to a wu-ftpd server.  I'm trying to add users and change passwords via a cgi-script(www).


Calvin...
-- 



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.






More information about the Ale mailing list