isislovecruft / python-gnupg

A modified version of python-gnupg, including security patches, extensive documentation, and extra features.
Other
424 stars 172 forks source link

How to export minimal key? #290

Open Myzel394 opened 1 year ago

Myzel394 commented 1 year ago

When I generate a new key and export it I get a huge key back. How do I export it minimally?

   options = gpg_handler.gpg.gen_key_input(
        key_type="RSA",
        key_length=1024,
        name_email="test@example.com",
        name_real="Test",
    )
    key = gpg_handler.gpg.gen_key(options)

    public_key = gpg_handler.gpg.export_keys(key.fingerprint)  # minimal=True doesn't work