| 1 | <?php |
||
| 18 | class TripleDESEncryptionHelper extends AbstractEncryptionHelper |
||
| 19 | { |
||
| 20 | const ENCRYPTION_KEY_SIZE_BYTES = 24; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | 6 | public function encrypt($key, $data) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 5 | public function decrypt($key, $data) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $key |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 11 | protected function padKey($key) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | 11 | protected function getCipherMethod() |
|
| 55 | } |
||
| 56 |