There is no license information available for the latest version (v1.2) of this package.

aes加密类,加密后的字符串没有_-+等特殊符号,只有数字和字母

Maintainers

Details

github.com/zhuyanxun/aes

Source

Issues

Installs: 225

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 1

Forks: 2

Open Issues: 0

pkg:composer/zhuyanxun/aes

v1.2 2020-10-19 03:16 UTC

This package is auto-updated.

Last update: 2025-12-19 17:34:59 UTC


README

php版Aes加密字符串,加密后无特殊符号,只有数字和字母

如何安装

composer require zhuyanxun/aes

如何使用

$aes_key = "J0^P^)0-ZriSt93g";
$aes_iv  = "B8jNhk5J49(@mM++";
$method  = "AES-128-CBC";
$aes = new Aes($aes_key,$aes_iv,$method);

//默认字符串
$strings = "hello world!";

//加密
$result1 = $aes->encrypt($strings);

//解密
$result2 = $aes->decrypt($result1);

print_r(array(
    'default' => $strings,
    'encrypt' => $result1,
    'decrypt' => $result2,
));