Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Other Applications / Magento / Where is my Magento Encryption Key?

Where is my Magento Encryption Key?

Last update: Aug 07, 2025

The Magento Encryption Key is generated during the Magento Installation. It is used for the encryption and the secure 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 File manager in your Site Tools for example. In this file, you should look for the following code:

'key' => '358908865aba76fcd9e1859578e9285a',

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.

Share this article

Related Articles