On Thu, 3 Jul 2003, Wade Preston Shearer said: <snip> > if i registered a new user (username: bob, password: apple), his entry > in the database is something like... > > bob:T3dh93jO2 <snip> > 1. what kind of encryption is used when i am using "htpasswd" when > registering users via the command line?
Crypt - http://www.php.net/crypt > 2. can i encrypt passwords with this same encryption using PHP? $Password = "apple"; $CryptedString = "T3dh93j02"; if (crypt($Password, $CryptedString) == $CryptedString) ... Note that you can also use md5 or other hashes as well. > 3. can i make PHP read encrypted passwords? Not sure what you're asking. It's a one-way hash. Frank --------------------------------------------------------------------------- Frank Sorenson - KD7TZK CSR Computer Science Department Brigham Young University [EMAIL PROTECTED] ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
