rsa解密
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\logic\UpstreamLogic::rsaDecrypt |
| 所属业务 | 上下游 |
| 来源模块/系统 | 上游管理公共类 |
功能说明
rsa解密
调用示例
$encryptData = 'string';
$rsaPrivateKey = 'string';
$result = (new \app\common\logic\UpstreamLogic())->rsaDecrypt($encryptData, $rsaPrivateKey);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
encryptData | string | 是 | — | required | 加密数据 |
rsaPrivateKey | string | 是 | — | required | 私钥 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
返回值 | string | 解密后数据 |
正常返回
{}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |