Hardware keys
Use a YubiKey or Nitrokey as your OpenPGP key, following the official vendor and GnuPG guides.
A hardware key keeps the private key on the device. Set-up is done with the vendor's official tools and GnuPG on your computer — never by typing a private key into a browser.
In GnuPG, official smartcard commands include:
gpg --card-status
gpg --card-editYubico's OpenPGP developer documentation and support article cover YubiKey. Nitrokey's OpenPGP card documentation covers Nitrokey. Open those official pages below before moving a key onto a device.