1 | <?php |
||
9 | class Safe |
||
10 | { |
||
11 | public static $salt = 'tfju=fiM148We4oYuyojjzmA6b9UKGhQ'; |
||
12 | |||
13 | /** |
||
14 | * @param $text |
||
15 | * |
||
16 | * @return string |
||
17 | */ |
||
18 | public static function encrypt($text) |
||
22 | |||
23 | /** |
||
24 | * @param $text |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public static function decrypt($text) |
||
32 | |||
33 | /** |
||
34 | * @param $value |
||
35 | * |
||
36 | * @return bool|string |
||
37 | */ |
||
38 | public static function hashEncode($value) |
||
42 | |||
43 | /** |
||
44 | * @param $array |
||
45 | */ |
||
46 | public static function secure(&$array) |
||
63 | } |
||
64 |