Sure you can :-)  If you are using PHP follow these easy steps:
Have the user provide login and password
send both to server
compare login against '/etc/password'
strip the first 2 characters off the encrypted password (might be
/etc/shadow' these days)
us PHP's crypt with the entered password and salt taken from the file
compare that to the encrypted password on file

so, essentially you are comparing encrypted password to encrypted
password..of course I hope you plan on using SSL or some other way to
encrypt it over the wire...if not you could do the encryption client-side
but that's another story.
HTH
-Brad
---
Brad Bonkoski
Software Engineer
Xyterra Computing Inc.
(480)609-5106

Reply via email to