JoshKaufman / ursa

URSA - RSA public/private key OpenSSL bindings for Node.js
Other
619 stars 135 forks source link

to remove the padded characters in the decrypted string #164

Open manuks opened 6 years ago

manuks commented 6 years ago

While using RSA_NO_PADDING the decrypt function returns a string with padded value. Is it good to replace the padding as below. decriptedValue.replace(/\0/g, '') Could you please remove the padded characters in the decrypt function response?