rsaDecrypt
函数RSA 私钥解密。
签名
function rsaDecrypt(ciphertext: string, privateKey: string): string参数
| 名称 | 类型 | 描述 |
|---|---|---|
| ciphertext | string | Base64 编码的密文 |
| privateKey | string | PEM 格式的私钥 |
返回值
string
解密后的原始字符串
源码
packages/encryptor/src/RSAHelper.ts:45
RSA 私钥解密。
function rsaDecrypt(ciphertext: string, privateKey: string): string| 名称 | 类型 | 描述 |
|---|---|---|
| ciphertext | string | Base64 编码的密文 |
| privateKey | string | PEM 格式的私钥 |
string
解密后的原始字符串
packages/encryptor/src/RSAHelper.ts:45