Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class Hash implements HashExtensionInterface, RandomizerAwareExtensionInterface |
||
12 | { |
||
13 | use RandomizerAwareExtensionTrait; |
||
14 | |||
15 | 1 | public function md5(): string |
|
16 | { |
||
17 | 1 | return bin2hex($this->randomizer->getBytes(16)); |
|
18 | } |
||
19 | |||
20 | 1 | public function sha1(): string |
|
21 | { |
||
22 | 1 | return bin2hex($this->randomizer->getBytes(20)); |
|
23 | } |
||
24 | |||
25 | 1 | public function sha256(): string |
|
28 | } |
||
29 | } |
||
30 |