description

1.1 2021-03-02 02:51 UTC

This package is auto-updated.

Last update: 2024-03-29 04:19:50 UTC


README

Build Status codecov Supported PHP versions: =7.1+

example:

use AES\AES;

$plain = "test中文test!!";
$key = "abc132123123123e425ab234523a45ef"; //must be hexadecimal string

$aes = new AES($key, 'aes-128-gcm');
$encrypt = $aes->encrypt($plain);
// 3vhFDoifaCXTZdA5nyZxH5ajrbGFdVFHFJhT8Qw8yVDj/UQoWONn40/NdaQ

$aes->decrypt($encrypt);
// test中文test!!

License

MIT