1 | <?php |
||
12 | class Manager extends BaseManager |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | const ENCRYPT_METHOD = 'AES256'; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | public static $encryptKey; |
||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | public static function getCFileName() |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public static function getEncryptKey() |
||
39 | |||
40 | /** |
||
41 | * @param string $encryptKey |
||
42 | */ |
||
43 | public static function setEncryptKey($encryptKey) |
||
47 | |||
48 | /** |
||
49 | * @param $string |
||
50 | * @return string |
||
51 | */ |
||
52 | public static function encrypt($string) |
||
56 | |||
57 | /** |
||
58 | * @param $string |
||
59 | * @return string |
||
60 | */ |
||
61 | public static function decrypt($string) |
||
65 | |||
66 | /** |
||
67 | * @return bool|string |
||
68 | */ |
||
69 | protected static function getIv() |
||
73 | |||
74 | /** |
||
75 | * @param $array |
||
76 | * @return string |
||
77 | */ |
||
78 | protected static function encode($array) |
||
82 | |||
83 | /** |
||
84 | * @param $string |
||
85 | * @return array |
||
86 | */ |
||
87 | protected static function decode($string) |
||
91 | |||
92 | } |