JoshKaufman / ursa

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

to remove the padded characters in the decrypted string #164

Open manuks opened 7 years ago

manuks commented 7 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?