Very handy and simpler PHP Encryption and Decryption
Via Composer
$ composer require tuhin18003/simpler-php-encrypt-decrypt
Include the autoload file in your working file..
require './vendor/autoload.php';
use Tuhin18003\SimPhpEnDecrypt\Builder
$encryption = Builder::encrypt('test');
It returns an array with cipher and key
Array ( [cipher] => SWlPb2ZQN1ZDRlJXb2JwRXdOVmtmZz09 [key] => MTk2OGEyOTdlE0M2RkMjhkZGRlOTQxMTk= )
use Tuhin18003\SimPhpEnDecrypt\Builder
Builder::decrypt( $encryption['cipher'], $encryption['key'] );
It returns the original string
test
- Created by - M.Tuhin