Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use the generated keypair elsewhere? #7

Open
superical opened this issue May 4, 2017 · 1 comment
Open

How can I use the generated keypair elsewhere? #7

superical opened this issue May 4, 2017 · 1 comment

Comments

@superical
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants