react-native-rsa icon indicating copy to clipboard operation
react-native-rsa copied to clipboard

How can I use the generated keypair elsewhere?

Open superical opened this issue 8 years ago • 1 comments

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 encrypt/decrypt or sign using the key files outside of RN, for eg, on server side or in openssl?

If not, how should I use the JSON format keys outside of RN?

superical avatar May 04 '17 08:05 superical

this lib takes raw format. I would recommend using ursa lib to convert to pem file. if you store data in raw format, you can then decode it using same raw format.

z-hao-wang avatar May 19 '17 17:05 z-hao-wang