MediaWiki REL1_33
Pbkdf2PasswordFallbackTest.php
Go to the documentation of this file.
1<?php
2
8 protected function getTypeConfigs() {
9 return [
10 'pbkdf2' => [
11 'class' => Pbkdf2Password::class,
12 'algo' => 'sha256',
13 'cost' => '10000',
14 'length' => '128',
15 ],
16 ];
17 }
18
19 public static function providePasswordTests() {
20 return [
21 [ true, ":pbkdf2:sha1:1:20:c2FsdA==:DGDID5YfDnHzqbUkr2ASBi/gN6Y=", 'password' ],
22 [ true, ":pbkdf2:sha1:2:20:c2FsdA==:6mwBTcctb4zNHtkqzh1B8NjeiVc=", 'password' ],
23 [ true, ":pbkdf2:sha1:4096:20:c2FsdA==:SwB5AbdlSJq+rUnZJvch0GWkKcE=", 'password' ],
24 [ true, ":pbkdf2:sha1:4096:16:c2EAbHQ=:Vvpqp1VICZ3MN9fwNCXgww==", "pass\x00word" ],
25 ];
26 }
27}
getTypeConfigs()
Return an array of configs to be used for this class's password type.
static providePasswordTests()
An array of tests in the form of (bool, string, string), where the first element is whether the secon...