chinawilon / aes
description
1.1
2021-03-02 02:51 UTC
Requires
- php: >=7.1
- ext-openssl: *
Requires (Dev)
- phpunit/phpunit: >=7.0.0
README
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