z-hao-wang / react-native-rsa

React native rsa crypto
MIT License
68 stars 19 forks source link

How can I use the generated keypair elsewhere? #7

Open superical opened 7 years ago

superical commented 7 years ago

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?

z-hao-wang commented 7 years ago

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.