eshow/加密

eshow 加密 php sdk

v0.0.2 2023-07-27 08:07 UTC

This package is not auto-updated.

Last update: 2024-10-03 13:30:38 UTC


README

解密sdk

安装

composer require eshow/encryption

使用

use Eshow\Encryption\bin\Action;
use Eshow\Encryption\exception\PubKeyException;

$decryptData = ""; //需要解密的数据
$config = [
    "timestampLimit"=>60,//超时时间
    "publicKey"=>""//公钥
];
try {

    $action = new Action($config);
    $data = $action->decrypt($decryptData);
}catch (PubKeyException $exception){

}

异常