Skip to content

Changing the encryption key

Can anyone who has already changed the encryption key in Magento 2.4.6 via the admin panel help me with this question?

I need to change Magento’s encryption key, but I’m afraid that the data encrypted by the old key will be lost.

I made the change in a local environment and noticed a strange behavior in the env.php file, instead of replacing the old key it concatenated the old key with the new one.

Does anyone know if this is standard behavior?

enter image description here