ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BinToHexSerializer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23trait BinToHexSerializer
24{
25 private function hash(string $string): string
26 {
27 return bin2hex($string);
28 }
29
30 private function unhash(string $string): string
31 {
32 return hex2bin($string);
33 }
34}