跳到主要内容

rsaDecrypt()

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

Defined in: crypto/rsaDecrypt.ts:25

RSA 解密

Parameters

ParameterTypeDescription
cipherTextstringBase64 编码密文
privateKeyPemstringPEM 格式私钥

Returns

Promise<string>

解密后的明文