Merge "Update docs/hooks.txt for ShowSearchHitTitle"
[mediawiki.git] / tests / phpunit / includes / password / Pbkdf2PasswordTest.php
blob07cdab0117052a6d58ed02094a0946f739a6ea0d
1 <?php
3 /**
4 * @group large
5 */
6 class Pbkdf2PasswordTest extends PasswordTestCase {
7 protected function getTypeConfigs() {
8 return [ 'pbkdf2' => [
9 'class' => 'Pbkdf2Password',
10 'algo' => 'sha256',
11 'cost' => '10000',
12 'length' => '128',
13 ] ];
16 public static function providePasswordTests() {
17 return [
18 [ true, ":pbkdf2:sha1:1:20:c2FsdA==:DGDID5YfDnHzqbUkr2ASBi/gN6Y=", 'password' ],
19 [ true, ":pbkdf2:sha1:2:20:c2FsdA==:6mwBTcctb4zNHtkqzh1B8NjeiVc=", 'password' ],
20 [ true, ":pbkdf2:sha1:4096:20:c2FsdA==:SwB5AbdlSJq+rUnZJvch0GWkKcE=", 'password' ],
21 [ true, ":pbkdf2:sha1:4096:16:c2EAbHQ=:Vvpqp1VICZ3MN9fwNCXgww==", "pass\x00word" ],