MediaWiki
REL1_33
Pbkdf2PasswordFallbackTest.php
Go to the documentation of this file.
1
<?php
2
7
class
Pbkdf2PasswordFallbackTest
extends
PasswordTestCase
{
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
}
PasswordTestCase
Definition
PasswordTestCase.php:26
Pbkdf2PasswordFallbackTest
large Pbkdf2Password
Definition
Pbkdf2PasswordFallbackTest.php:7
Pbkdf2PasswordFallbackTest\getTypeConfigs
getTypeConfigs()
Return an array of configs to be used for this class's password type.
Definition
Pbkdf2PasswordFallbackTest.php:8
Pbkdf2PasswordFallbackTest\providePasswordTests
static providePasswordTests()
An array of tests in the form of (bool, string, string), where the first element is whether the secon...
Definition
Pbkdf2PasswordFallbackTest.php:19
tests
phpunit
includes
password
Pbkdf2PasswordFallbackTest.php
Generated on Mon Nov 25 2024 15:51:10 for MediaWiki by
1.10.0