| 1 | <?php | ||
| 15 | class EncryptCache extends SimpleCache | ||
| 16 | { | ||
| 17 | /** | ||
| 18 | * | ||
| 19 | */ | ||
| 20 | const ENCRYPT_METHOD = 'AES256'; | ||
| 21 | |||
| 22 | /** | ||
| 23 | * @var string | ||
| 24 | */ | ||
| 25 | public static $encryptKey; | ||
| 26 | |||
| 27 | /** | ||
| 28 | * @return string | ||
| 29 | */ | ||
| 30 | public static function getEncryptKey() | ||
| 34 | |||
| 35 | /** | ||
| 36 | * @param string $encryptKey | ||
| 37 | */ | ||
| 38 | public static function setEncryptKey($encryptKey) | ||
| 42 | |||
| 43 | /** | ||
| 44 | * @param object $object | ||
| 45 | * @return string | ||
| 46 | */ | ||
| 47 | protected static function encode($object) | ||
| 51 | |||
| 52 | /** | ||
| 53 | * @param string $string | ||
| 54 | * @return object | ||
| 55 | */ | ||
| 56 | protected static function decode($string) | ||
| 60 | |||
| 61 | /** | ||
| 62 | * @return bool|string | ||
| 63 | */ | ||
| 64 | protected static function getIv() | ||
| 68 | |||
| 69 | } |