fdevs/crypt

FDevs Crypt Component

dev-master 2016-07-27 18:38 UTC

This package is auto-updated.

Last update: 2024-11-28 18:52:36 UTC


README

Build Status

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.