BaseEncrypter

class BaseEncrypter (View source)

Properties

protected string $key The encryption key.

Methods

string hash(string $iv, string $value)

Create a MAC for the given value.

array getJsonPayload(string $payload)

Get the JSON array from the given payload.

bool invalidPayload(array|mixed $data)

Verify that the encryption payload is valid.

bool validMac(array $payload)

Determine if the MAC for the given payload is valid.

Details

protected string hash(string $iv, string $value)

Create a MAC for the given value.

Parameters

string $iv
string $value

Return Value

string

protected array getJsonPayload(string $payload)

Get the JSON array from the given payload.

Parameters

string $payload

Return Value

array

Exceptions

DecryptException

protected bool invalidPayload(array|mixed $data)

Verify that the encryption payload is valid.

Parameters

array|mixed $data

Return Value

bool

protected bool validMac(array $payload)

Determine if the MAC for the given payload is valid.

Parameters

array $payload

Return Value

bool

Exceptions

RuntimeException

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Encryption/BaseEncrypter.html