Asides from GUI this seems to be the second major weakness in python. No public/private key generator. To make things worse, visual studio documentation doesn’t seem simple either. It has all stuff I probably need but it’s confusing. Does CngKey refers to a public or private key? And how do I store it in a plain text file?
Here is what I really needed:
Gets a new private key that is random/prime/secure/etc
Gets the matching public key
Gets a shared secret(that I’ll use in a keyed hash, like hmac)
Done. I could implement that in Python but I am 99% sure I would make a serious mistake and expose the private key.
I don’t want a certificate or to associate either key or the shared secret with any company or person. Just to have that link between private and public key.