PasswordEncryptor_MySQLPassword
class PasswordEncryptor_MySQLPassword extends PasswordEncryptor (View source)
Uses MySQL's PASSWORD encryption. Requires an active DB connection.
Properties
static private array | $encryptors | from PasswordEncryptor |
Methods
No description
This usually just returns a strict string comparison, but is necessary for retain compatibility with password hashed with flawed algorithms - see {@link PasswordEncryptor_LegacyPHPHash} and {@link PasswordEncryptor_Blowfish}
Details
static array
get_encryptors()
static PasswordEncryptor
create_for_algorithm(string $algorithm)
string
encrypt(string $password, string $salt = null, Member $member = null)
Return a string value stored in the {@link Member->Password} property.
The password should be hashed with {@link salt()} if applicable.
string
salt(string $password, Member $member = null)
Return a string value stored in the {@link Member->Salt} property.
bool
check(string $hash, string $password, string $salt = null, Member $member = null)
This usually just returns a strict string comparison, but is necessary for retain compatibility with password hashed with flawed algorithms - see {@link PasswordEncryptor_LegacyPHPHash} and {@link PasswordEncryptor_Blowfish}