> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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.

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


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


3. You shall see a new **Encryption Key** immediately when you see the following message at the top:
![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/change-encryption-key_kv8m2q.png)


_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._


4. 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:

![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/final-app-etc-env-notepad_asitb2.png)



|| 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.