ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
APR1_MD5_HashTest Class Reference
+ Inheritance diagram for APR1_MD5_HashTest:
+ Collaboration diagram for APR1_MD5_HashTest:

Public Member Functions

 testHash_WhiteHat101 ()
 
 testHash_apache ()
 
 testHash_ChangeMe1 ()
 
 testHash_ChangeMe1_blankSalt ()
 
 testHash_ChangeMe1_longSalt ()
 
 testHash_ChangeMe1_nullSalt ()
 
 testHash__nullSalt ()
 
 testHash_null_nullSalt ()
 

Detailed Description

Definition at line 5 of file APR1_MD5_HashTest.php.

Member Function Documentation

◆ testHash__nullSalt()

APR1_MD5_HashTest::testHash__nullSalt ( )

Definition at line 49 of file APR1_MD5_HashTest.php.

49 {
50 $hash = APR1_MD5::hash('');
51 $this->assertEquals(37, strlen($hash));
52 }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406

References GuzzleHttp\Psr7\hash().

+ Here is the call graph for this function:

◆ testHash_apache()

APR1_MD5_HashTest::testHash_apache ( )

Definition at line 14 of file APR1_MD5_HashTest.php.

14 {
15 $this->assertEquals(
16 '$apr1$rOioh4Wh$bVD3DRwksETubcpEH90ww0',
17 APR1_MD5::hash('apache','rOioh4Wh')
18 );
19 }

References GuzzleHttp\Psr7\hash().

+ Here is the call graph for this function:

◆ testHash_ChangeMe1()

APR1_MD5_HashTest::testHash_ChangeMe1 ( )

Definition at line 21 of file APR1_MD5_HashTest.php.

21 {
22 $this->assertEquals(
23 '$apr1$PVWlTz/5$SNkIVyogockgH65nMLn.W1',
24 APR1_MD5::hash('ChangeMe1','PVWlTz/5')
25 );
26 }

References GuzzleHttp\Psr7\hash().

+ Here is the call graph for this function:

◆ testHash_ChangeMe1_blankSalt()

APR1_MD5_HashTest::testHash_ChangeMe1_blankSalt ( )

Definition at line 30 of file APR1_MD5_HashTest.php.

30 {
31 $this->assertEquals(
32 '$apr1$$DbHa0iITto8vNFPlkQsBX1',
33 APR1_MD5::hash('ChangeMe1','')
34 );
35 }

References GuzzleHttp\Psr7\hash().

+ Here is the call graph for this function:

◆ testHash_ChangeMe1_longSalt()

APR1_MD5_HashTest::testHash_ChangeMe1_longSalt ( )

Definition at line 37 of file APR1_MD5_HashTest.php.

37 {
38 $this->assertEquals(
39 '$apr1$PVWlTz/5$SNkIVyogockgH65nMLn.W1',
40 APR1_MD5::hash('ChangeMe1','PVWlTz/50123456789')
41 );
42 }

References GuzzleHttp\Psr7\hash().

+ Here is the call graph for this function:

◆ testHash_ChangeMe1_nullSalt()

APR1_MD5_HashTest::testHash_ChangeMe1_nullSalt ( )

Definition at line 44 of file APR1_MD5_HashTest.php.

44 {
45 $hash = APR1_MD5::hash('ChangeMe1');
46 $this->assertEquals(37, strlen($hash));
47 }

References GuzzleHttp\Psr7\hash().

+ Here is the call graph for this function:

◆ testHash_null_nullSalt()

APR1_MD5_HashTest::testHash_null_nullSalt ( )

Definition at line 56 of file APR1_MD5_HashTest.php.

56 {
57 $hash = APR1_MD5::hash(null);
58 $this->assertEquals(37, strlen($hash));
59 }

References GuzzleHttp\Psr7\hash().

+ Here is the call graph for this function:

◆ testHash_WhiteHat101()

APR1_MD5_HashTest::testHash_WhiteHat101 ( )

Definition at line 7 of file APR1_MD5_HashTest.php.

7 {
8 $this->assertEquals(
9 '$apr1$HIcWIbgX$G9YqNkCVGlFAN63bClpoT/',
10 APR1_MD5::hash('WhiteHat101','HIcWIbgX')
11 );
12 }

References GuzzleHttp\Psr7\hash().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: