rzcoder / node-rsa

Node.js RSA library
1.39k stars 205 forks source link

Decrypt error : decryptPublic() #193

Open priyankashah2017 opened 3 years ago

priyankashah2017 commented 3 years ago

The decrypt function should return an error If the token is not valid or the token is not encrypted by valid key

const decryptData = key.decryptPublic(encrypted, 'utf8');