1. Go to this page and download the library: Download kishor-rajbanshi/php-crypt 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/ */
kishor-rajbanshi / php-crypt example snippets
use KishorRajbanshi\Crypt\Crypter;
$key = Crypter::generateKey('AES-256-CBC');
use KishorRajbanshi\Crypt\Crypter;
$key = random_bytes(32); // 32 bytes for AES-256-CBC
$crypter = new Crypter($key, 'AES-256-CBC');