| 1 | <?php |
||
| 13 | class McryptStrategy extends AesEncryptionStrategy |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Create an initialization vector |
||
| 17 | * |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | public function createIv() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get the size of the IV |
||
| 27 | * |
||
| 28 | * @return int |
||
| 29 | */ |
||
| 30 | public function getIvSize() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Encrypt data |
||
| 37 | * |
||
| 38 | * @param mixed $data |
||
| 39 | * @param string $iv |
||
| 40 | * @return mixed |
||
| 41 | */ |
||
| 42 | public function encryptData($data, $iv) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Decrypt data |
||
| 49 | * |
||
| 50 | * @param $data |
||
| 51 | * @param $iv |
||
| 52 | * @return mixed |
||
| 53 | */ |
||
| 54 | public function decryptData($data, $iv) |
||
| 58 | } |
||
| 59 |