Generation parameters.
Parameters for OpenPGP key pair generation.
Creation date of the key pair.
Display name for the primary user ID.
Email address for the primary user ID.
Array of user IDs to embed in the key.
Key type (e.g. 'ecc' or 'rsa').
Passphrase used to encrypt the private key.
RSA key size in bits (only used when type is 'rsa').
Elliptic curve name (only used when type is 'ecc').
Seconds until the key expires (0 for no expiration).
Output format of the generated key (e.g. 'armored').
generate
Generates a new OpenPGP public and private key pair. Supports RSA and ECC keys. The generated primary key has signing capabilities and an encryption subkey is also generated by default.