From bc34bb5fa01fc7720456a08cc7eecb895ad27748 Mon Sep 17 00:00:00 2001 From: Jens Date: Thu, 30 Mar 2023 10:37:12 +0200 Subject: [PATCH] (Refactor) default encryption method --- public/install/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/install/functions.php b/public/install/functions.php index f10c02a8..c8e61b16 100644 --- a/public/install/functions.php +++ b/public/install/functions.php @@ -146,7 +146,7 @@ function encryptSettingsValue(mixed $value, $serialize = true): string { $appKey = getEnvironmentValue('APP_KEY'); $appKey = base64_decode(Str::after($appKey, 'base64:')); - $encrypter = new Encrypter($appKey, 'AES-256-CBC'); + $encrypter = new Encrypter($appKey); $encryptedKey = $encrypter->encrypt($value, $serialize); return $encryptedKey; @@ -163,7 +163,7 @@ function decryptSettingsValue(mixed $payload, $unserialize = true) { $appKey = getEnvironmentValue('APP_KEY'); $appKey = base64_decode(Str::after($appKey, 'base64:')); - $encrypter = new Encrypter($appKey, 'AES-256-CBC'); + $encrypter = new Encrypter($appKey); $decryptedKey = $encrypter->decrypt($payload, $unserialize); return $decryptedKey;