PHP code example of joungkyun / mysqlaes
1. Go to this page and download the library: Download joungkyun/mysqlaes 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/ */
joungkyun / mysqlaes example snippets
mysqlAES is supported ';
if ( class_exists ('oops\Encrypt\mysqlAES') )
echo 'YES';
else
echo 'NO';
echo "\n";
oops\Encrypt;
$string = "123 abced\n";
$key = '0123456789012345';
$enc = mysqlAES::hex (mysqlAES::encrypt ($string, $key));
$dec = mysqlAES::decrypt (mysqlAES::unhex ($enc), $key);