travist / jsencrypt

A zero-dependency Javascript library to perform OpenSSL RSA Encryption, Decryption, and Key Generation.
http://www.travistidwell.com/jsencrypt
Other
6.69k stars 2.02k forks source link

While Decryption Returns Empty String #253

Open Gokulkannan08 opened 2 years ago

Gokulkannan08 commented 2 years ago

Using Private key i have tried to decrypt but it returns empty string. Provided Private key is correct. Code: var decrypt = new JSEncrypt(); decrypt.setPrivateKey(privateKey); var decryption = decrypt.decrypt(encrypted);

Returns: decryption: ''

Gokulkannan08 commented 2 years ago

encrypted value is an object