PHP code example of shimochi / crypt-blowfish
1. Go to this page and download the library: Download shimochi/crypt-blowfish 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/ */
shimochi / crypt-blowfish example snippets
= 'key';
$text = 'text';
$blowfish =& Crypt\Blowfish::factory('cbc', $key);
$encrypt = $blowfish->encrypt($text);
$decrypt = $blowfish->decrypt($encrypt);