Crypt uses Composer, please checkout the composer website for more information.
The simple following command will install
fdevs/crypt into your project. It also add a new
entry in your
composer.json and update the
composer.lock as well.
composer require fdevs/crypt
<?php use FDevs\Crypt\Encryptor\AES256; $encryptor = new AES256(); $data = '';//your data $secretKey = '';//very secret key $cryptData = $encryptor->encrypt($data, $secretKey); echo $encryptor->decrypt($cryptData,$secretKey);
This library is under the MIT license. See the complete license in the library: