PHP code example of katoni / php-ffx
1. Go to this page and download the library: Download katoni/php-ffx 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/ */
katoni / php-ffx example snippets
$key = 'hello';
$alphabet = 'abcdefghijklmnopqrstuvwxyz';
$ffx = new \Katoni\FFX\Codecs\Text($key, $alphabet, 10);
$ffx->encrypt('encryption'); // string: jrsunxgmbq
$ffx = new \Katoni\FFX\Codecs\Integer($key, 4);
$ffx->encrypt('1234'); // int: 1867