node-rsa icon indicating copy to clipboard operation
node-rsa copied to clipboard

Node.js RSA library

Results 38 node-rsa issues
Sort by recently updated
recently updated
newest added

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'); ```

Hi there, I keep getting this error. I am relatively new to this so please excuse me if I am making an obvious mistake. ``` Error during encryption. Original error:...

![image](https://user-images.githubusercontent.com/11290701/103405819-6f07f400-4b93-11eb-9473-9157bd6083ab.png) At present, I see that node-rsa only supports the first decryption method. Can you consider supporting the second one?

Hi Here is my contribution to your code, its working good on powersystems. Thanks for the code, its working good. ## What do these changes do? Added Architecture "ppc64le" ##...

Can this library generate and work with encrypted private keys? -----BEGIN ENCRYPTED PRIVATE KEY-----

I want to use it in the client compiled by electron, but the private key and public key are stored locally, and I need to add a password to my...

So I am trying to encrypt data using public key from backend in the browser. Since it's not https, I can't really use crypto.subtle. I've tryed bundling with browserify with...

Hey. I have input, signature as base64 string and public key in DER format encoded in BASE64 without start mark, end mark, and end line mark. But when I try...

keyData = '-----BEGIN RSA PRIVATE KEY-----\n' + my private key + '\n-----END RSA PRIVATE KEY-----'; key = new NodeRSA({b:2048}); encrypt(text){ key.importKey(keyData, 'pkcs1'); encrypted = this.key.encrypt(plainText, 'base64'); } Pops out an...

So currently I am trying to encode a script on frontend just to test (which still doesn't work) however realistically, backend will do the encoding with public key and frontend...