/inc/passwords.php

Description

functions for handling authentication

Includes
require_once ('inc/bb/configreader.php') (line 17)
require_once ('inc/typeinfo.php') (line 14)

Load ancillary functions

Functions
check_password (line 38)

check that the supplied password matches the encoded password in the database

  • return: password matches
boolean check_password (string $test, string $real)
  • string $test: unencoded string supplied by the user as a password attempt
  • string $real: encoded string from the database
is_valid_username (line 25)

tests if string is a valid username as per the config setting for usernames

  • return: username is valid
boolean is_valid_username (string $v)
  • string $v: string to test if it is a valid username
makeHashSalt (line 82)
void makeHashSalt ([ $type = 'md5'])
  • $type
makePasswordHash (line 53)

encode a password according to the specified hash method (or using the requested

  • return: hashed password
string makePasswordHash (string $passwd, [string $salt = NULL], [ $method = NULL])
  • string $passwd: unencoded password string
  • string $salt: salt used to hash the password
  • $method
passwordHashType (line 117)
void passwordHashType ( $pass)
  • $pass

Documentation generated on Tue, 06 Mar 2007 10:01:48 +0000 by phpDocumentor 1.3.0