PHP code example of wubinworks / module-encryption-key-manager-cli

1. Go to this page and download the library: Download wubinworks/module-encryption-key-manager-cli library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wubinworks / module-encryption-key-manager-cli example snippets


$ php bin/magento ww:encryption-key-manager:genkey
5f81fe506a1025b8ea439fd49c6fa8e3

php bin/magento ww:ekm:list [--newest]

$ php bin/magento ww:ekm:list
Encryption key count: 3
39a2f1213e6a942af3cd4f1c2d61528c
fdd862cd41f95e4edaf2636258ce359f
3cd27f0eeae9ffec35681d8aa0faa618

php bin/magento ww:encryption-key-manager:rotate [-k|--key KEY]