|
|
Joined: Dec 1999
Posts: 158
Enthusiast
|
Enthusiast
Joined: Dec 1999
Posts: 158 |
we're in the process of programming a custom profile section for our site, which should utilize the same username / password combination for login as the message board.
our programmer tried the crypt() function to read existing pw's and insert new users, but the results seem to differ from what's already in the w3t table. is there any special logarithm used or how does it work?
thanks in advance
|
|
|
|
Joined: Aug 2000
Posts: 262
Enthusiast
|
Enthusiast
Joined: Aug 2000
Posts: 262 |
i don't think it does, it just crypts the typed in password and matches it up with the one in teh db. if (crypt($Password,$passindb) == $pass) { echo "logged in?"; }
i think?
|
|
|
|
Joined: May 1999
Posts: 90
Member
|
Member
Joined: May 1999
Posts: 90 |
I think you actually meant: if (crypt($Password,$passindb) == $passindb) {
|
|
|
|
Joined: Feb 2001
Posts: 20
User
|
User
Joined: Feb 2001
Posts: 20 |
Take a look at the following url : http://programming.ccp14.ac.uk/ftp-mirror/programming/cygwin/pub/cygwin/latest/crypt/
The crypt.c library implemented in that source is the same one that is implemeted under php. We have successfully implented this algorithm with one of our programs (take a look at its licensing though), and have been able to check against passwords successfully.
= Jim =
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|