Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Contracts\Encryption; |
| 4 | |
| 5 | interface StringEncrypter |
| 6 | { |
| 7 | /** |
| 8 | * Encrypt a string without serialization. |
| 9 | * |
| 10 | * @param string $value |
| 11 | * @return string |
| 12 | * |
| 13 | * @throws \Illuminate\Contracts\Encryption\EncryptException |
| 14 | */ |
| 15 | public function encryptString($value); |
| 16 | |
| 17 | /** |
| 18 | * Decrypt the given string without unserialization. |
| 19 | * |
| 20 | * @param string $payload |
| 21 | * @return string |
| 22 | * |
| 23 | * @throws \Illuminate\Contracts\Encryption\DecryptException |
| 24 | */ |
| 25 | public function decryptString($payload); |
| 26 | } |