micseres/micro-service-encrypt

Micro Service Encrypt

1.2 2021-04-20 07:52 UTC

This package is auto-updated.

Last update: 2024-04-20 14:10:51 UTC


README

Usage

$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);

License

The Soft Deletable Bundle is open-sourced software licensed under the MIT license.