rsaDecrypt

Function

RSA 私钥解密。

Signature

function rsaDecrypt(ciphertext: string, privateKey: string): string

Parameters

NameTypeDescription
ciphertextstringBase64 编码的密文
privateKeystringPEM 格式的私钥

Returns

string

解密后的原始字符串

Source

packages/encryptor/src/RSAHelper.ts:45