Articles on: Magento

How to Change Magento Encryption Key

What is Magento Encryption key?

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.

You can always change the Magento Encryption Key inside your Magento administrator dashboard and click on System >> Manage Encryption Key (Under Other Settings).

Select Yes next to Auto-generate a Key and press the Change Encryption Key.

You shall see a new Encryption Key immediately when you see the following message at the top:

This is your new encryption key: 434fb678209a7890ff7e8dfc5220508d. Be sure to write it down and take good care of it!

The encryption key has been changed.

In our case, the new Magento Encryption Key is 434fb678209a7890ff7e8dfc5220508d

You can also double check this by using cPanel's File Manager or Filezilla FTP by locating 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:

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.

Updated on: 19/04/2019

Was this article helpful?

Share your feedback


Thank you!