Skip to content

Commit

Permalink
Update UtilityService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
yordadev committed Jun 27, 2024
1 parent c19473f commit bd7459c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/UtilityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ 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());
}
}

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
Expand Down

0 comments on commit bd7459c

Please sign in to comment.