Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
87 views

I am experimenting with developing rsa with flutter and nodejs. public.pem and private.pem are same for both. Both the code are working fine when run in same language. but when transmitting data over ...
Navjot Aulakh's user avatar
0 votes
1 answer
103 views

On the client side, import JSEncrypt from 'jsencrypt'; var cryptor = new JSEncrypt(); const publicEncrypt = (str:string, publicKey:string = PUBLIC_KEY) =>{ cryptor.setPublicKey(publicKey); ...
user824624's user avatar
  • 8,168
0 votes
0 answers
124 views

function encrypt(encrypted, publicKey) { const encrypt = crypto.publicEncrypt(publicKey, Buffer.from(encrypted)); return encrypt; } var ciphertext = this.encrypt("***",key.exportKey(...
李海龙's user avatar
0 votes
2 answers
1k views

I have this jwk key that I wanto convert into pem: const jwkey = { kty: 'RSA', kid: 'eecb0ced-4d49-4100-9547-841e4100b756', n: '...very long string', e: 'AQAB', alg: 'RS256', use: 'sig', };...
codeForCoffee's user avatar
0 votes
0 answers
402 views

I am trying to convert https://clover.app.box.com/s/rz18bni3bpmdrc8wc92xm4w8h9grrtty from Java to node.js I am using the node-rsa package and getting error:0306E06C:bignum routines:BN_mod_inverse:no ...
inquisitivemongoose's user avatar
1 vote
0 answers
814 views

I tried to decrypt a string encrypted with a publicKey on the server using Node-RSA in my React Native app with the privateKey using the same Node-RSA lib, it takes about 2-3 secs to decrypt a simple ...
Eddie's user avatar
  • 31
0 votes
0 answers
1k views

What I have to do is encrypt a small message through a public key. I have the public key but I can't encrypt any messages. I have tried with JSEncrypt, encrypt-rsa, hybrid-crypto-js, NodeRSA and ...
kamikazzi's user avatar
1 vote
1 answer
2k views

So, I'm developing a project which needs a website to generate the qr code with encryption and qr code scanner mobile application to scan and decrypt the qr code. I've used node-rsa for encryption in ...
Abhijit Unavane's user avatar
0 votes
0 answers
180 views

I want to decrypt my C++ Openssl RSA message with node-rsa. In node-rsa I get Error: Error during decryption (probably incorrect key). Original error: Error: Incorrect data or key Encryption: //ADD ...
tom203's user avatar
  • 77
0 votes
0 answers
329 views

I am using node-rsa library in both NodeJS and Angular. node-rsa: https://www.npmjs.com/package/node-rsa I am trying to encrypt a JSON Array from nodeJS server to be sent Angular where it has to ...
javapedia.net's user avatar
1 vote
1 answer
961 views

When running the Buffer.from static method in node js on a public key I get different console.log when running it from the browser (in an angular project). Should'nt they be the same? Is there ...
Han Che's user avatar
  • 8,579
0 votes
1 answer
7k views

I need to use node-rsa to encrypt a wifi-password in ionic 5 with angular. I have a running example on Stackblitz. However when i replicate it locally in angular 10 as well as ionic 5, it doesn't work....
Han Che's user avatar
  • 8,579
1 vote
0 answers
639 views

I`m trying to encrypt data via RSA using public key (128-bytes == 1024-bits) received from auth server. Here is a code in Node.js: const NodeRSA = require('node-rsa'); const openData = Buffer.from('...
xOk's user avatar
  • 19
2 votes
1 answer
6k views

Error: Error during decryption (probably incorrect key). Original error: Error: This is not private key Here is my nodejs code. I am using node-rsa. const keyData = fs .readFileSync("./docs/...
Monish N's user avatar
  • 398
0 votes
3 answers
3k views

Im using the node-rsa package for encrypting data as follows const crypto = require('crypto') const NodeRSA = require('node-rsa') const path = require("path") const fs = require("fs") const ...
Ankit P's user avatar
0 votes
1 answer
309 views

I tried searching for an answer to this question and didn't find anything. So, I'm asking and answering. I'm trying to implement a JWKS endpoint. I found some example code here. Note that the author'...
Cully's user avatar
  • 6,995
0 votes
0 answers
791 views

I've got a server written in node.js that I want to receive encrypted messages from a C# app. I tried to implement RSA firstly for this task, but with no avail, because I wasn't able to decrypt the ...
Zeke's user avatar
  • 1
1 vote
2 answers
10k views

I was following this tutorial on medium. However the tutorial does not explain how to decrypt the encrypted file. Nor does it explain how the public / private keys are used. Simply running decrypt ...
user avatar
1 vote
1 answer
5k views

I am trying to integrate a payment gateway to my nodejs app. When the payment is complete, the gateway redirects the user to my site with the payment result. The result is RSA signed and I need to ...
Lahiru Chandima's user avatar
12 votes
1 answer
4k views

I'm working on a way to secure the message I sent from a node.js server to a C++ application. From node.js , I created a key pair. I'm using node-rsa to read the public key on node.js side ( https:...
Nico AD's user avatar
  • 1,709
2 votes
2 answers
7k views

Currently working to try to get connected with the Walmart Partners API, and having some issues with their cryptography, and I have not found any documented assistance for this in Javascript/Node. ...
n drosos's user avatar
  • 181
3 votes
1 answer
1k views

I am working with an npm module (node-rsa), trying to use typescript. In the example for my module, I need to write some js like this (taken from the module docs). var NodeRSA = require('node-rsa'); ...
George Edwards's user avatar
7 votes
3 answers
19k views

So I've been trying to use node with node-rsa and javascript with jsencrypt to create a website (for an assignment) where the javascript client gets the public key generated by the server (node-rsa), ...
Curious Programmer's user avatar
1 vote
1 answer
852 views

I tried to implement rsa public key system. the server was implemented with node-js and using node-rsa library to encrypt/decrypt rsa. and the client was implemented with java. in authentification ...
user3867261's user avatar
5 votes
1 answer
3k views

I have a set of public/private keys, that works flawless when encrypting/decrypting some data using only one of the 2 ways for both encryption and decryption. I still have no luck trying to encrypt ...
Fr0stBit's user avatar
  • 1,515
3 votes
3 answers
9k views

I am using node-rsa module for decrypt the key . I have created one private key from p12 file by using below command openssl pkcs12 -in xxx.p12 -nocerts -out privateKeyPkcs12.pem it has given rsa ...
Prabu's user avatar
  • 165