DecryptException.php
2 years ago
EncryptException.php
2 years ago
Encrypter.php
3 weeks ago
StringEncrypter.php
2 years ago
Encrypter.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Contracts\Encryption; |
| 4 | |
| 5 | /** @internal */ |
| 6 | interface Encrypter |
| 7 | { |
| 8 | /** |
| 9 | * Encrypt the given value. |
| 10 | * |
| 11 | * @param mixed $value |
| 12 | * @param bool $serialize |
| 13 | * @return string |
| 14 | * |
| 15 | * @throws \Illuminate\Contracts\Encryption\EncryptException |
| 16 | */ |
| 17 | public function encrypt($value, $serialize = \true); |
| 18 | /** |
| 19 | * Decrypt the given value. |
| 20 | * |
| 21 | * @param string $payload |
| 22 | * @param bool $unserialize |
| 23 | * @return mixed |
| 24 | * |
| 25 | * @throws \Illuminate\Contracts\Encryption\DecryptException |
| 26 | */ |
| 27 | public function decrypt($payload, $unserialize = \true); |
| 28 | /** |
| 29 | * Get the encryption key that the encrypter is currently using. |
| 30 | * |
| 31 | * @return string |
| 32 | */ |
| 33 | public function getKey(); |
| 34 | } |
| 35 |