PHP code example of jdmaymeow / php-encrypt

1. Go to this page and download the library: Download jdmaymeow/php-encrypt 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/ */

    

jdmaymeow / php-encrypt example snippets

-encrypt.bat
bash
composer create-project --prefer-dist jdmaymeow/php-encrypt php-encrypt
bash
git clone https://github.com/jdmaymeow/php-encrypt
cd php-encrypt
composer install
bash
php index.php bf:ca DesiredNameCa --CN="My CA" --C=SK --O="My Organization ltd."
bash
php index.php bf:intermediatesign DesiredNameCa --CN="My Intermediate CA" --C=SK --O="My Organization ltd." --CA=DesiredNameCa
bash
php index.php bf:usersign jane-doe --CN="Jane Doe" --C=SK [email protected] --CA=MyCA
bash
php index.php bf:usersign jane-doe --CN="Jane Doe" --C=SK [email protected] --validity=30 --CA=MyCA
bash
php index.php bf:serversign my-server --CN="www.domain.tld" --C=SK --CA=MyCA
bash
php index.php bf:serversign my-server --CN="www.domain.tld" --C=SK --validity=30 --CA=MyCA
config/app.php
batch
@php "%~dp0path-to-php-encrypt-folder\index.php" %*