fdevs / crypt
FDevs Crypt Component
dev-master
2016-07-27 18:38 UTC
Requires
- php: >=5.5.9 || ~7.0
- fdevs/padding: ^0.1
Requires (Dev)
- ext-mcrypt: *
- symfony/var-dumper: ^3.1
Suggests
- ext-mcrypt: use with AES256 Encryptor
This package is auto-updated.
Last update: 2024-11-28 18:52:36 UTC
README
Installation
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
Usage examples
basic usage
<?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);
License
This library is under the MIT license. See the complete license in the library:
LICENSE
Created by 4devs - Check out our blog for more insight into this and other open-source projects we release.