跳到主要内容

rsaDecrypt()

function rsaDecrypt(cipherText, privateKeyPem): Promise<string>;

Defined in: packages/utils/src/crypto/rsaDecrypt.ts:27

RSA 解密

Parameters​

ParameterTypeDescription
cipherTextstringBase64 编码密文
privateKeyPemstringPEM 格式私钥

Returns​

Promise<string>

解密后的明文