ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Hasher.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 trait Hasher
27 {
28  private function hash(string $string): string
29  {
30  return base64_encode($string);
31  }
32 
33  private function unhash(string $string): string
34  {
35  return base64_decode($string);
36  }
37 }