From bd7459c9ed6818a108bc4c25837c3b3c07a17dd1 Mon Sep 17 00:00:00 2001 From: Yorda Date: Wed, 26 Jun 2024 18:03:15 -0600 Subject: [PATCH] Update UtilityService.php --- src/Services/UtilityService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/UtilityService.php b/src/Services/UtilityService.php index ea2dd17..a31286c 100644 --- a/src/Services/UtilityService.php +++ b/src/Services/UtilityService.php @@ -18,7 +18,7 @@ public static function getEncrypter(): Encrypter try { return new Encrypter( UtilityService::databaseEncryptionKey(), - 'aes-128-cbc'); + 'AES-256-CBC'); } catch (Exception $exception) { throw new UtilityServiceException($exception->getMessage()); } @@ -26,7 +26,7 @@ public static function getEncrypter(): Encrypter protected static function databaseEncryptionKey(): ?string { - return base64_decode(Str::after(config('app.key'), 'base64:')); + return base64_decode(Str::after(env('APP_KEY'), 'base64:')); } public static function getRedirectCode(): int