Generates a new standard private-public keypair. This function is mostly for testing purposes. Use the gpg --gen-key command line utility to generate an official GPG key with custom fields and options.

gpg_keygen(name, email, passphrase = NULL)

Arguments

name

value for the Name-Real field

email

value for the Name-Email field

passphrase

(optional) protect with a passphrase

References

GPG manual section on Unattended key generation.

See also