Neos\Flow\Tests\Unit\Security\Cryptography\BCryptHashingStrategyTest::hashPasswordWithMatchingPasswordAndParametersSucceeds PHP 메소드

hashPasswordWithMatchingPasswordAndParametersSucceeds() 공개 메소드

    public function hashPasswordWithMatchingPasswordAndParametersSucceeds()
    {
        $strategy = new BCryptHashingStrategy(10);
        $derivedKeyWithSalt = $strategy->hashPassword('password');
        $this->assertTrue($strategy->validatePassword('password', $derivedKeyWithSalt));
        $this->assertFalse($strategy->validatePassword('pass', $derivedKeyWithSalt));
    }