How to Change the Encryption Key in Magento 2 | HiddenTechies

In this article we’ll show you, how to Change the Encryption Key in Magento 2. Follow this simple guideline…

Step 1: Make the File Writable

To change the encryption key, make sure that the following file is writable: [your store root directory]/app/etc/env.php

Step 2: Get Started

Login into Magento Admin Panel and from sidebar go to, System > Other Settings > Manage Encryption Key.

How to Change the Encryption Key in Magento 2

Step 3: Change Encryption Key

Do the following:

  • To generate a new key, set Auto-generate Key to Yes.
  • To use a different key, set Auto-generate Key to No. Then in the New Key field, enter or paste the key that you want to use.

Click Change Encryption Key.

How to Change the Encryption Key in Magento 2

Yeah Done! Let us know in the comment section below if you have any question. We are happy 🙂 to help you! Check out Best Magento Tutorials here!

1 Comment

  1. Thank you for your perfect advice.

Leave a Reply

Your email address will not be published. Required fields are marked *