laravel / 6 / api / 6.x / illuminate / contracts / encryption / encrypter.html

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.

Details

string encrypt(mixed $value, bool $serialize = true)

Encrypt the given value.

Parameters

mixed $value
bool $serialize

Return Value

string

Exceptions

mixed decrypt(string $payload, bool $unserialize = true)

Decrypt the given value.

Parameters

string $payload
bool $unserialize

Return Value

mixed

Exceptions

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Contracts/Encryption/Encrypter.html