createPasswordHash() 공개 메소드

The hashing algorithm used depends on your config.
public createPasswordHash ( string $password ) : string
$password string String you wish to hash.
리턴 string Hash of the given string.
예제 #1
0
파일: Crypt.php 프로젝트: Webiny/Framework
 /**
  * Create a hash for the given password.
  *
  * @param string $password
  *
  * @return string Password hash.
  */
 public function createPasswordHash($password)
 {
     return $this->instance->createPasswordHash($password);
 }
예제 #2
0
 public function testVerifyPasswordHash2()
 {
     $crypt = new Crypt();
     $password = $crypt->createPasswordHash('login123');
     $this->assertFalse($crypt->verifyPasswordHash('123login', $password));
 }