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

Is it possible to convert openPGP private key into RSA Key within this project? #224

Open
TommyLike opened this issue Mar 21, 2023 · 2 comments
Labels

Comments

@TommyLike
Copy link

I found there is a dist in python which will do this work: https://gist.github.com/yifanlu/b9df49cfc1540bc8b896, I am wondering whether we could do this in rust too?

@dignifiedquire
Copy link
Member

Conceptually yes, you can extract the underlying key material and reencode them into eg PEM format as the linked gist does.

If you look at the https://docs.rs/rsa/ crate there are ways to encode keys as you need them once you have extracted them.

@TommyLike
Copy link
Author

Conceptually yes, you can extract the underlying key material and reencode them into eg PEM format as the linked gist does.

If you look at the https://docs.rs/rsa/ crate there are ways to encode keys as you need them once you have extracted them.

Will this supported in this crate? I mean convert from/to rsa keys

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

No branches or pull requests

2 participants