From da9bb07041a9c6fadff643bf70cd40d1bb6f806c Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 3 Nov 2017 16:27:03 -0700 Subject: [PATCH] Add a default legacy cipher of rijndael-256 --- app/Console/Commands/RecryptFromMcrypt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/RecryptFromMcrypt.php b/app/Console/Commands/RecryptFromMcrypt.php index bb38f098f9..f4f7ab3832 100644 --- a/app/Console/Commands/RecryptFromMcrypt.php +++ b/app/Console/Commands/RecryptFromMcrypt.php @@ -48,7 +48,7 @@ class RecryptFromMcrypt extends Command // If not, we can try to use the current APP_KEY if looks like it's old $legacy_key = env('LEGACY_APP_KEY'); $key_parts = explode(':', $legacy_key); - $legacy_cipher = env('LEGACY_CIPHER'); + $legacy_cipher = env('LEGACY_CIPHER', 'rijndael-256'); $errors = array(); if (!$legacy_key) {