Magento Encryption Key

Learn what is the Magento encryption key and how to use it

The Magento Encryption Key is generated during the Magento Installation. It is used for the encryption and the security storage of the sensitive data in the script's database.

The Magento Encryption Key is kept in the app/etc/env.php file. You can open that file by using the File manager tool in your cPanel for example. In this file, you should look for the following code:

Important!You should always keep your Magento encryption key securely saved somewhere. You will need it in case you want to move your data to a different Magento installation. In addition, some payment and shipment processors require it to operate correctly.