PasswordEncryptor_PHPHash
class PasswordEncryptor_PHPHash extends PasswordEncryptor
Encryption using built-in hash types in PHP.
Please note that the implemented algorithms depend on the PHP distribution and architecture.
Methods
No description
Return a string value stored in the {@link Member->Salt} property.
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}
No description
No description
Details
in PasswordEncryptor at line 29
static array
get_encryptors()
in PasswordEncryptor at line 39
static PasswordEncryptor
create_for_algorithm(String $algorithm)
at line 40
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.
in PasswordEncryptor at line 83
string
salt(string $password, Member $member = null)
Return a string value stored in the {@link Member->Salt} property.
in PasswordEncryptor at line 101
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}