Neos\Flow\Tests\Unit\Security\Cryptography\BCryptHashingStrategyTest::hashPasswordWithMatchingPasswordAndParametersSucceeds PHP Method

hashPasswordWithMatchingPasswordAndParametersSucceeds() public method

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