<?php
// encryption with phpseclib - PHP Secure Communications Library
use phpseclib\Crypt\Blowfish;
$blowfish = new Blowfish();
$blowfish->setKey('48495774373859848594959');
$plaintext = 'My plaintext string';
$encrypted = $blowfish->encrypt($plaintext);
$decrypted = $blowfish->decrypt($encrypted);
var_dump($encrypted, $decrypted);