cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to encrypt env.php without breaking magento?

Is it possible to encrypt env.php without breaking magento?

So I am not a huge fan of env.php having plain text DB password in it, is it possible to encrypt env.php without breaking magento? It seems the file is literally required for any bin/magento functions to work.

1 REPLY 1

Re: Is it possible to encrypt env.php without breaking magento?

Hello @louisphilibadc 

 

You can try this thing :

array (
        'host' => 'localhost',
        'dbname' => 'databasename',
        'username' => base64_decode('encoded user name'),
        'password' => base64_decode('encoded password'),
        'active' => '1',
        'persistent' => NULL,
      ),
Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy