ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
trait.ilMMHasher.php
Go to the documentation of this file.
1<?php
2
8trait ilMMHasher
9{
10
16 private function hash(string $string) : string
17 {
18 return bin2hex($string);
19 }
20
21
27 private function unhash(string $string) : string
28 {
29 return hex2bin($string);
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406