micseres / micro-service-encrypt
微服务加密
1.2
2021-04-20 07:52 UTC
Requires
- php: >=7.2
- ext-json: *
- ext-mcrypt: *
- ext-openssl: *
- ext-sockets: *
Requires (Dev)
- phpunit/phpunit: >=7.2
This package is auto-updated.
Last update: 2024-09-20 15:03:39 UTC
README
使用说明
$this->encrypt = new OpenSSLEncrypt('CAMELLIA-256-CFB'); //or $this->encrypt = new DummyEncrypt(); to do nothing $this->encrypt->setPassword($this->bobDH->getSharedKey($alicePublickKey)); $secure = $this->encrypt->encrypt($request); $plain = $this->encrypt->decrypt($request);
许可证
软删除包是开源软件,根据MIT许可证授权。