SaltedMd5HashingStrategy deprecated
class SaltedMd5HashingStrategy implements PasswordHashingStrategyInterface (View source)
deprecated
A salted MD5 based password hashing strategy
Methods
static string
generateSaltedMd5(string $clearString)
Generates a salted md5 hash over the given string.
static bool
validateSaltedMd5(string $clearString, string $hashedStringAndSalt)
Tests if the given string would produce the same hash given the specified salt.
string
hashPassword(string $password, string $staticSalt = null)
Hash a password using salted MD5
bool
validatePassword(string $password, string $hashedPasswordAndSalt, string $staticSalt = null)
Validate a hashed password using salted MD5
Details
static string
generateSaltedMd5(string $clearString)
Generates a salted md5 hash over the given string.
static bool
validateSaltedMd5(string $clearString, string $hashedStringAndSalt)
Tests if the given string would produce the same hash given the specified salt.
Use this method to validate hashes generated with generateSlatedMd5().
string
hashPassword(string $password, string $staticSalt = null)
Hash a password using salted MD5
bool
validatePassword(string $password, string $hashedPasswordAndSalt, string $staticSalt = null)
Validate a hashed password using salted MD5