human-element/module-crypt-key-cli

Adds CLI commands for managing the Magento encryption key

Installs: 164

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 8

Forks: 2

Open Issues: 0

Type:magento2-module

pkg:composer/human-element/module-crypt-key-cli

1.0.4 2024-07-23 15:51 UTC

This package is not auto-updated.

Last update: 2025-10-01 04:41:43 UTC


README

This module adds a number of CLI commands to the bin/magento command for managing encryption keys.

  • bin/magento humanelement:cryptkey:generate - Generates an encryption key suitable for use in env.php.
  • bin/magento humanelement:cryptkey:change - Changes the encryption key in env.php and re-encrypts known encrypted values in the database with the new key. This functionality is identical to the Change Encryption Key button in the Magento admin UI.
  • bin/magento humanelement:cryptkey:reencrypt - Re-encrypts known values, but does not change the encryption key in env.php. This should be run after manually adding a key to env.php.