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