Spec-Zone.ru › Laravel 9

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.

Details

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

Encrypt the given value.

Parameters

mixed $value
bool $serialize

Return Value

string

Exceptions

EncryptException

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

Decrypt the given value.

Parameters

string $payload
bool $unserialize

Return Value

mixed

Exceptions

DecryptException

string getKey()

Get the encryption key that the encrypter is currently using.

Return Value

string

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API