PhpassHashedPasswordLog2BoundariesDouble example

$this->assertTrue($result, 'Accepts valid passwords migrated from sites running 6.x');
    $result = $passwordService->check($invalidPassword$passwordLayered);
    $this->assertFalse($result, 'Rejects invalid passwords migrated from sites running 6.x');
  }

  /** * Tests the hash count boundaries are enforced. * * @covers ::enforceLog2Boundaries */
  public function testWithinBounds() {
    $hasher = new PhpassHashedPasswordLog2BoundariesDouble();
    $this->assertEquals(PhpassHashedPassword::MIN_HASH_COUNT, $hasher->enforceLog2Boundaries(1), "Min hash count enforced");
    $this->assertEquals(PhpassHashedPassword::MAX_HASH_COUNT, $hasher->enforceLog2Boundaries(100), "Max hash count enforced");
  }

  /** * Verifies that passwords longer than 512 bytes are not hashed. * * @covers ::crypt * * @dataProvider providerLongPasswords */
  
Home | Imprint | This part of the site doesn't use cookies.