Debian Codegraph @

lib/3rdParty/composer/illuminate/contracts/Encryption/Encrypter.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Contracts\Encryption;
4
5 interface Encrypter
6 {
7 /**
8 * Encrypt the given value.
9 *
10 * @param mixed $value
11 * @param bool $serialize
12 * @return string
13 *
14 * @throws \Illuminate\Contracts\Encryption\EncryptException
15 */
16 public function encrypt(#[\SensitiveParameter] $value, $serialize = true);
17
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 /**
30 * Get the encryption key that the encrypter is currently using.
31 *
32 * @return string
33 */
34 public function getKey();
35
36 /**
37 * Get the current encryption key and all previous encryption keys.
38 *
39 * @return array
40 */
41 public function getAllKeys();
42
43 /**
44 * Get the previous encryption keys.
45 *
46 * @return array
47 */
48 public function getPreviousKeys();
49 }