[ale] Passwd replacement
Chris Fowler
cfowler at outpostsentinel.com
Mon Jan 28 18:42:38 EST 2002
crypt() can handle MD5 passwords. You just haev to use a format for the
salt. Replace <salt> below with your salt;
char salt[6];
char *password;
strcpy(salt, "$1$<salt>";
password=crypt("PASSWORD", salt);
Don't use the code. It is just to show an example. with MD5 you will no
longer be limited to 8 character password.
Chris
-----Original Message-----
From: Calvin Harrigan [mailto:charrig at earthlink.net]
To: ale at ale.org
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