DecryptException.php
2 years ago
EncryptException.php
2 years ago
Encrypter.php
3 weeks ago
StringEncrypter.php
2 years ago
StringEncrypter.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Contracts\Encryption; |
| 4 | |
| 5 | /** @internal */ |
| 6 | interface StringEncrypter |
| 7 | { |
| 8 | /** |
| 9 | * Encrypt a string without serialization. |
| 10 | * |
| 11 | * @param string $value |
| 12 | * @return string |
| 13 | * |
| 14 | * @throws \Illuminate\Contracts\Encryption\EncryptException |
| 15 | */ |
| 16 | public function encryptString($value); |
| 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 | } |
| 27 |