EncryptionService.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace TidioLiveChat\Encryption; |
| 4 | |
| 5 | if (!defined('WPINC')) { |
| 6 | die('File loaded directly. Exiting.'); |
| 7 | } |
| 8 | |
| 9 | use TidioLiveChat\Encryption\Exception\DecryptionFailedException; |
| 10 | |
| 11 | interface EncryptionService |
| 12 | { |
| 13 | /** |
| 14 | * @param string $value |
| 15 | * @return string |
| 16 | */ |
| 17 | public function encrypt($value); |
| 18 | |
| 19 | /** |
| 20 | * @param string $encryptedString |
| 21 | * @return string |
| 22 | * @throws DecryptionFailedException |
| 23 | */ |
| 24 | public function decrypt($encryptedString); |
| 25 | } |
| 26 |