PHP code example of jsoltani / js-crypto
1. Go to this page and download the library: Download jsoltani/js-crypto 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/ */
jsoltani / js-crypto example snippets
php composer.phar
jsCrypto::setKey('aaaaaadassfvsdgsfgregdfgb');
jsCrypto::setMethod('AES-128-CFB8');
$data = jsCrypto::encrypt("Test Crypt");
echo "Encrypt: $data <br>";
echo "Decrypt: " . jsCrypto::decrypt($data);