PHP 클래스 Piwik\Auth\Password

파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
hash ( string $password ) : string Hashes a password with the configured algorithm.
info ( $hash ) : array Returns information about a hashed password (algo, options, .
needsRehash ( string $hash ) : boolean Rehashes a user's password if necessary.
verify ( string $password, string $hash ) : boolean Verifies a user's password against the provided hash.

메소드 상세

hash() 공개 메소드

Hashes a password with the configured algorithm.
public hash ( string $password ) : string
$password string
리턴 string

info() 공개 메소드

..). Can be used to verify whether a string is compatible with password_hash().
public info ( $hash ) : array
리턴 array

needsRehash() 공개 메소드

This method expects the password to be pre-hashed by \Piwik\Plugins\UsersManager\UsersManager::getPasswordHash().
public needsRehash ( string $hash ) : boolean
$hash string
리턴 boolean

verify() 공개 메소드

This method expects the password to be pre-hashed by \Piwik\Plugins\UsersManager\UsersManager::getPasswordHash().
public verify ( string $password, string $hash ) : boolean
$password string
$hash string
리턴 boolean