fengdangxing / php-aes
hyperf-php-aes
v1.0.5
2024-08-27 09:50 UTC
Requires
- php: >=5.6.0
README
#配置mongodb config/autoload/app.php
return [ 'fengdangxing' => [ 'encrypt' => [ 'method' => 'AES-128-CBC',// Encryption methods: AES-256-CBC 'key' => 'Y6eENzQ69OKqRaHE',// secret key 'iv' => 'qweNzsd9OKJOIJoo',// offset key ] ] ];
#use
<?php $str = \Fengdangxing\Aes\Aes::encrypt("121212"); echo $str.PHP_EOL; echo \Fengdangxing\Aes\Aes::decrypt($str);