| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Hash |
||
| 9 | { |
||
| 10 | public static function SHA256(string $data, $raw = true): string |
||
| 11 | { |
||
| 12 | return hash('sha256', $data, $raw); |
||
| 13 | } |
||
| 14 | |||
| 15 | public static function sha256d(string $data): string |
||
| 16 | { |
||
| 17 | return hash('sha256', hash('sha256', $data, true), true); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function RIPEMD160(string $data, $raw = true): string |
||
| 23 | } |
||
| 24 | } |