5 * @covers Pbkdf2Password
7 * @covers ParameterizedPassword
8 * @requires function hash_pbkdf2
10 class Pbkdf2PasswordTest
extends PasswordTestCase
{
11 protected function getTypeConfigs() {
12 return [ 'pbkdf2' => [
13 'class' => 'Pbkdf2Password',
17 'use-hash-extension' => true,
21 public static function providePasswordTests() {
23 [ true, ":pbkdf2:sha1:1:20:c2FsdA==:DGDID5YfDnHzqbUkr2ASBi/gN6Y=", 'password' ],
24 [ true, ":pbkdf2:sha1:2:20:c2FsdA==:6mwBTcctb4zNHtkqzh1B8NjeiVc=", 'password' ],
25 [ true, ":pbkdf2:sha1:4096:20:c2FsdA==:SwB5AbdlSJq+rUnZJvch0GWkKcE=", 'password' ],
26 [ true, ":pbkdf2:sha1:4096:16:c2EAbHQ=:Vvpqp1VICZ3MN9fwNCXgww==", "pass\x00word" ],