From 7d1cbdf2981eec707ee5982b8dbdd1102820951b Mon Sep 17 00:00:00 2001 From: Tastenbimbo <4myfriends@gmx.de> Date: Fri, 20 Jan 2017 08:54:43 +0100 Subject: [PATCH] #283 Cipher can be set in ENV file --- .env.example | 4 ++-- config/app.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 495c86ba..4cdfe3e7 100644 --- a/.env.example +++ b/.env.example @@ -1,9 +1,9 @@ APP_ENV=production APP_DEBUG=false APP_URL= -APP_CIPHER=rijndael-128 +APP_CIPHER=AES-256-CBC APP_KEY= -APP_TIMEZONE +APP_TIMEZONE= DB_TYPE=mysql DB_HOST=db diff --git a/config/app.php b/config/app.php index 1fa1cf8f..531ba341 100644 --- a/config/app.php +++ b/config/app.php @@ -92,7 +92,7 @@ return [ */ 'key' => env('APP_KEY', 'SomeRandomString'), - 'cipher' => MCRYPT_RIJNDAEL_128, + 'cipher' => env('APP_CIPHER', 'MCRYPT_RIJNDAEL_128'), /* |--------------------------------------------------------------------------