PHP 클래스 Neos\Flow\Security\Cryptography\SaltedMd5HashingStrategy

상속: implements Neos\Flow\Security\Cryptography\PasswordHashingStrategyInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

공개 메소드들

메소드 설명
generateSaltedMd5 ( string $clearString ) : string Generates a salted md5 hash over the given string.
hashPassword ( string $password, string $staticSalt = null ) : string Hash a password using salted MD5
validatePassword ( string $password, string $hashedPasswordAndSalt, string $staticSalt = null ) : boolean Validate a hashed password using salted MD5
validateSaltedMd5 ( string $clearString, string $hashedStringAndSalt ) : boolean Tests if the given string would produce the same hash given the specified salt.

메소드 상세

generateSaltedMd5() 공개 정적인 메소드

Generates a salted md5 hash over the given string.
public static generateSaltedMd5 ( string $clearString ) : string
$clearString string The unencrypted string which is the subject to be hashed
리턴 string Salted hash and the salt, separated by a comma ","

hashPassword() 공개 메소드

Hash a password using salted MD5
public hashPassword ( string $password, string $staticSalt = null ) : string
$password string The cleartext password
$staticSalt string ignored parameter
리턴 string A hashed password with salt

validatePassword() 공개 메소드

Validate a hashed password using salted MD5
public validatePassword ( string $password, string $hashedPasswordAndSalt, string $staticSalt = null ) : boolean
$password string The cleartext password
$hashedPasswordAndSalt string The hashed password with salt
$staticSalt string ignored parameter
리턴 boolean TRUE if the given password matches the hashed password

validateSaltedMd5() 공개 정적인 메소드

Use this method to validate hashes generated with generateSlatedMd5().
public static validateSaltedMd5 ( string $clearString, string $hashedStringAndSalt ) : boolean
$clearString string
$hashedStringAndSalt string
리턴 boolean TRUE if the clear string matches, otherwise FALSE