react-native-rsa
react-native-rsa copied to clipboard
React native rsa crypto
Can it encrypt data with multiple public keys ?
Hi, in the issue I see that you can get the n and e from a public key. However, if I have a key pair as below: { "privateKey":"25485320031b6edac7a2397446711acb5be5cb62462326a2a5f5a799cebab986", "publicKey":"04a78b97716b4b02357604c93c3433ad4d53d360beeadea5ace5c06be288f9f0de3b1ef993ae6beb67b5e4945376d997dd381297ccb7e0e0cd70ad0a4a40a34e2d"...
I have the public key from a redbear/Duo an it is in pkcs1-public-der The Duo Documentation says: > Response string (e.g.) : {"b":"ascii hex-encoded data","r":0} // 0 ok, non zero...
I am encrypting a key on frontend using a public key and passing it to node.js server where node is decrypting it using RSA algorithm with PADDING 4. So when...
Currently, the public and private keys generated are in JSON format. Is there a way to convert the generated keys to .key or .pem format so that I can conveniently...
I am using this code on the react-native side: ` const rsa = new RSAKey(); rsa.setPublicString(JSON.stringify(public_key)); const encrypted = rsa.encrypt(data); ` and on node.js: ` let key = ursa.createPrivateKey(user.privateKey); let...