|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|