Node.js 错误:错误:04090979:rsa例程:rsa\u padding\u check\u PKCS1\u OAEP\u mgf1:OAEP解码错误
我正在尝试使用crypto.publicEncrypt对已加密的邮件进行解密,但出现以下错误:Node.js 错误:错误:04090979:rsa例程:rsa\u padding\u check\u PKCS1\u OAEP\u mgf1:OAEP解码错误,node.js,node-modules,Node.js,Node Modules,我正在尝试使用crypto.publicEncrypt对已加密的邮件进行解密,但出现以下错误: internal/crypto/cipher.js:44 return method(toBuf(key), buffer, padding, passphrase); ^ Error: error:04099079:rsa routines:RSA_padding_check_PKCS1_OAEP_mgf1:oaep decoding error at Obj
internal/crypto/cipher.js:44
return method(toBuf(key), buffer, padding, passphrase);
^
Error: error:04099079:rsa routines:RSA_padding_check_PKCS1_OAEP_mgf1:oaep decoding error
at Object.privateDecrypt (internal/crypto/cipher.js:44:12)
let enc = crypto.privateDecrypt({
key: privateKey,
padding: crypto.constants.RSA_PKCS1_OAEP_PADDING
}, Buffer.from(message, 'base64'));
你得到答案了吗?