PasswordEncryptor_LegacyPHPHash
class PasswordEncryptor_LegacyPHPHash extends PasswordEncryptor_PHPHash
Legacy implementation for SilverStripe 2.1 - 2.3, which had a design flaw in password hashing that caused the hashes to differ between architectures due to floating point precision problems in base_convert().
See http://open.silverstripe.org/ticket/3004
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}
Details
in PasswordEncryptor at line 25
static Array
get_encryptors()
in PasswordEncryptor at line 34
static PasswordEncryptor
create_for_algorithm(String $algorithm)
at line 311
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 78
String
salt(String $password, Member $member = null)
Return a string value stored in the {@link Member->Salt} property.
at line 322
check($hash, $password, $salt = null, $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}