Add a default legacy cipher of rijndael-256

This commit is contained in:
snipe 2017-11-03 16:27:03 -07:00
parent f95502ae35
commit da9bb07041

View file

@ -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 // If not, we can try to use the current APP_KEY if looks like it's old
$legacy_key = env('LEGACY_APP_KEY'); $legacy_key = env('LEGACY_APP_KEY');
$key_parts = explode(':', $legacy_key); $key_parts = explode(':', $legacy_key);
$legacy_cipher = env('LEGACY_CIPHER'); $legacy_cipher = env('LEGACY_CIPHER', 'rijndael-256');
$errors = array(); $errors = array();
if (!$legacy_key) { if (!$legacy_key) {