We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6699027 commit 0fe2d9cCopy full SHA for 0fe2d9c
src/Action/Decrypt.php
@@ -29,7 +29,12 @@ public function get($name)
29
30
if (!empty($this->configkey) && count($configfile)) {
31
32
- $crypt = new Encrypter($this->configkey);
+ $encenv_config = ['cipher' => ''];
33
+ if (file_exists(config_path('encryptenv.php'))) {
34
+ $encenv_config = require(config_path('encryptenv.php'));
35
+ }
36
+
37
+ $crypt = new Encrypter($this->configkey, $encenv_config['cipher']);
38
39
return !empty($configfile[$name]) && !is_array($configfile[$name]) && strpos($configfile[$name], "ENC:") === 0 ?
40
$crypt->decrypt(substr($configfile[$name], 4)) :
0 commit comments