aes-encryption:PHP中的AES加密

时间:2021-05-17 23:28:10
【文件属性】:
文件名称:aes-encryption:PHP中的AES加密
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-17 23:28:10
PHP PHP AES加密器 一个处理数据的AES加密的简单类 免责声明:虽然加密/解密已经过测试,但尚未由安全专家审核。 使用风险自负。 安装 使用composer安装 composer require tebru/aes-encryption 用法 只需使用一个密钥实例化加密器类并使用encrypt / decrypt方法 <?php $ encrypter = new AesEncrypter ( $ key ); $ encrypted = $ encrypter -> encrypt ( 'My secure data' ); $ decrypted = $ encrypter -> decrypt ( $ encrypted ); 加密方法能够处理任何类型的数据的加密,因为它首先对数据进行了序列化。 加密方式 该库支持aes128 aes192和aes256 。 默认情况下,它
【文件预览】:
aes-encryption-master
----composer.json(758B)
----.travis.yml(203B)
----phpunit.xml(453B)
----composer.lock(55KB)
----tests()
--------AesEncrypterTest.php(5KB)
----src()
--------AesEncrypter.php(3KB)
--------Strategy()
--------Enum()
--------Exception()
----.gitignore(28B)
----README.md(2KB)

网友评论