react-native-rsa-native | native implementation of RSA key generation | Encryption library
kandi X-RAY | react-native-rsa-native Summary
kandi X-RAY | react-native-rsa-native Summary
A native implementation of RSA key generation and encryption/decryption.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-rsa-native
react-native-rsa-native Key Features
react-native-rsa-native Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-rsa-native
QUESTION
I have an http request in which I want to pass some sensitive data so I tried to encrypted these data. In my React Native app I generated a pair of keys with react-native-rsa-native and I crypte my string with the public key via the function RSA.encrypt(my string, my public key).
After this I send the generated crypt data in my http request and I try to decrypt it in my node.js environment (Google Cloud Functions). For this I use the Crypto module.
I import it with:
...ANSWER
Answered 2019-Apr-19 at 21:07According to the documentation, the ciphertext should be an instance of Buffer
rather than a String
, therefore you can try to wrap the ciphertext into a buffer:
crypto.privateDecrypt(rsaPrivateKey, Buffer.from(myCryptedString))
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-rsa-native
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page