ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Hasher.php
Go to the documentation of this file.
1 <?php
2 
4 
10 trait Hasher
11 {
12 
18  private function hash(string $string) : string
19  {
20  return bin2hex($string);
21  }
22 
23 
29  private function unhash(string $string) : string
30  {
31  return hex2bin($string);
32  }
33 }
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
Definition: functions.php:406