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.

References GuzzleHttp\Psr7\hash().

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
+ 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.

References GuzzleHttp\Psr7\hash().

14  {
15  $this->assertEquals(
16  '$apr1$rOioh4Wh$bVD3DRwksETubcpEH90ww0',
17  APR1_MD5::hash('apache','rOioh4Wh')
18  );
19  }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406
+ 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.

References GuzzleHttp\Psr7\hash().

21  {
22  $this->assertEquals(
23  '$apr1$PVWlTz/5$SNkIVyogockgH65nMLn.W1',
24  APR1_MD5::hash('ChangeMe1','PVWlTz/5')
25  );
26  }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406
+ 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.

References GuzzleHttp\Psr7\hash().

30  {
31  $this->assertEquals(
32  '$apr1$$DbHa0iITto8vNFPlkQsBX1',
33  APR1_MD5::hash('ChangeMe1','')
34  );
35  }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406
+ 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.

References GuzzleHttp\Psr7\hash().

37  {
38  $this->assertEquals(
39  '$apr1$PVWlTz/5$SNkIVyogockgH65nMLn.W1',
40  APR1_MD5::hash('ChangeMe1','PVWlTz/50123456789')
41  );
42  }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406
+ 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.

References GuzzleHttp\Psr7\hash().

44  {
45  $hash = APR1_MD5::hash('ChangeMe1');
46  $this->assertEquals(37, strlen($hash));
47  }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406
+ 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.

References GuzzleHttp\Psr7\hash().

56  {
57  $hash = APR1_MD5::hash(null);
58  $this->assertEquals(37, strlen($hash));
59  }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406
+ 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.

References GuzzleHttp\Psr7\hash().

7  {
8  $this->assertEquals(
9  '$apr1$HIcWIbgX$G9YqNkCVGlFAN63bClpoT/',
10  APR1_MD5::hash('WhiteHat101','HIcWIbgX')
11  );
12  }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406
+ Here is the call graph for this function:

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