Encrypter
interface Encrypter (View source)
Methods
| string | encrypt(mixed $value, bool $serialize = true)
Encrypt the given value. | |
| mixed | decrypt(string $payload, bool $unserialize = true)
Decrypt the given value. | |
| string | getKey()
Get the encryption key that the encrypter is currently using. | |
| array | getAllKeys()
Get the current encryption key and all previous encryption keys. | |
| array | getPreviousKeys()
Get the previous encryption keys. |
Details
string encrypt(mixed $value, bool $serialize = true)
Encrypt the given value.
mixed decrypt(string $payload, bool $unserialize = true)
Decrypt the given value.
string getKey()
Get the encryption key that the encrypter is currently using.
array getAllKeys()
Get the current encryption key and all previous encryption keys.
array getPreviousKeys()
Get the previous encryption keys.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Contracts/Encryption/Encrypter.html