You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using python-rsa for a while and I think it's not been implemented yet. It should be so easy to get public key from a private key since both of them depend on the number e, but to validate it, we also need to know prime numbers since e can't be bigger than the totient. Apologies if it's a feature already implemented.
While this solution is totally fine I would consider it more error prone and less pythonic than a dedicated method or function. A syntax like
pubkey=privkey.public_key()
(see PR #187) encapsulates/black boxes the behavior into the PrivateKey class. In my eyes this makes totally sense since the public key is a direct derivation of the private key.
Hi. Thanks for awesome library.
I wonder if it's possible to generate the public key from the private key?
The text was updated successfully, but these errors were encountered: