- php>=5.3
- openssl扩展
- composer install
- test/Test.php 简单测试demo
- php test/Test.php
composer require she-zhi-she/aes-crypt
- 简单使用
use SheZhiShe\AesCrypt;
require_once __DIR__.'/../vendor/autoload.php';
$ase=new AesCrypt();
//加密
$res=$ase->encode('d12347477');
var_dump($res->getRes());
//解密
$dres=$ase->key($res->getKey())->iv($res->getIv())->decode($res->getRes());
var_dump($dres->getRes());