EncryptionServiceProvider::compiles()

static array compiles() Get a list of files that should be compiled for the package. Return Value array

EncryptionServiceProvider::commands()

void commands(array|mixed $commands) Register the package's custom Artisan commands. Parameters array|mixed $commands Return Value void

EncryptionServiceProvider

EncryptionServiceProvider class EncryptionServiceProvider extends ServiceProvider (View source) Methods void __construct(Application $app) Create a new service provider instance. from ServiceProvider static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. from ServiceProvider void commands(array|mixed $commands) Register the package's custom Artisan commands. from ServiceProvider array provides() Get the services provided by the pro

Encryption

Encryption Introduction Configuration Using The Encrypter Introduction Laravel's encrypter uses OpenSSL to provide AES-256 and AES-128 encryption. You are strongly encouraged to use Laravel's built-in encryption facilities and not attempt to roll your own "home grown" encryption algorithms. All of Laravel's encrypted values are signed using a message authentication code (MAC) so that their underlying value can not be modified once encrypted.

Encryption

Illuminate\Encryption Classes DecryptException Encrypter EncryptionServiceProvider InvalidKeyException

EncryptException

EncryptException class EncryptException extends RuntimeException (View source)

Encrypter::__construct()

void __construct(string $key, string $cipher = 'AES-128-CBC') Create a new encrypter instance. Parameters string $key string $cipher Return Value void Exceptions RuntimeException

Encrypter::supported()

static bool supported(string $key, string $cipher) Determine if the given key and cipher combination is valid. Parameters string $key string $cipher Return Value bool

Encrypter::getKey()

string getKey() Get the encryption key. Return Value string

Encrypter::encrypt()

string encrypt(string $value) Encrypt the given value. Parameters string $value Return Value string Exceptions EncryptException