PHP 클래스 Nette\Security\Passwords

상속: use trait Nette\StaticClass
파일 보기 프로젝트 열기: nette/security 1 사용 예제들

공개 메소드들

메소드 설명
hash ( $password, array $options = [] ) : string Computes salted password hash.
needsRehash ( $hash, array $options = [] ) : boolean Checks if the given hash matches the options.
verify ( $password, $hash ) : boolean Verifies that a password matches a hash.

메소드 상세

hash() 공개 정적인 메소드

Computes salted password hash.
public static hash ( $password, array $options = [] ) : string
$options array
리턴 string 60 chars long

needsRehash() 공개 정적인 메소드

Checks if the given hash matches the options.
public static needsRehash ( $hash, array $options = [] ) : boolean
$options array
리턴 boolean

verify() 공개 정적인 메소드

Verifies that a password matches a hash.
public static verify ( $password, $hash ) : boolean
리턴 boolean