Class PasswordEncryptor
Allows pluggable password encryption. By default, this might be PHP's
integrated sha1() function, but could also be more sophisticated to facilitate
password migrations from other systems. Use PasswordEncryptor::register() to add new
implementations.
Used in Security::encrypt_password().
Direct known subclasses
PasswordEncryptor_MySQLOldPassword,
PasswordEncryptor_MySQLPassword,
PasswordEncryptor_None,
PasswordEncryptor_PHPHash
Indirect known subclasses
Methods summary
public static
Array
|
|
public static
|
|
public static
|
|
public static
|
|
abstract public
String
|
#
encrypt( String $password, String $salt = null,
Return a string value stored in the Member->Password property. The
password should be hashed with |
public
String
|
|
public
boolean
|
#
compare( String $hash1, String $hash2 )
This usually just returns a strict string comparison, but is necessary for
|
Magic methods summary
Properties summary
protected static
array
|
$encryptors |