PHP code example of lefuturiste / crypt
1. Go to this page and download the library: Download lefuturiste/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/ */
lefuturiste / crypt example snippets
$crypt = new Lefuturiste\Crypt\Crypt('YOUR_PASSWORD');
$cipher = $crypt->encrypt('YOUR DATA');
$plainText = $crypt->decrypt($cipher); //YOUR DATA
$crypt = new Lefuturiste\Crypt\Crypt('YOUR_PASSWORD', 'AES-128-CFB1');
$cipher = $crypt->encrypt('YOUR DATA');
$plainText = $crypt->decrypt($cipher); //YOUR DATA