Skip to main content

A pinentry for GPG with Trezor

Project description

# Trezor-style PIN entry for GPG

This is an alternate PIN entry for use with [trezor-agent](https://github.com/romanz/trezor-agent/) or for people with number-only PINs. It displays a grid of unlabeled buttons and supports configurable keyboard mappings.

<img src=”screenshot.jpg”>

By default you can use any of these key grids to enter the PIN:

` w e r u i o 7 8 9 s d f j k l 4 5 6 x c v m , . 1 2 3 `

Press escape to cancel, backspace to clear everything you’ve entered, and enter to submit the PIN.

### Installation

  1. Run pip install trezor-gpg-pinentry-tk

  2. Find where it’s installed with by running which trezor-gpg-pinentry-tk

  3. Add this line to $GPGHOME/gpg-agent.conf: pinentry-program /path/to/trezor-gpg-pinentry-tk

  4. Run echo RELOADAGENT | gpg-connect-agent or restart your computer

### Configuration

Set these environment variables on your gpg-agent daemon, by overriding /usr/lib/systemd/user/gpg-agent.service for example.

  • PINENTRY_TREZOR_LOG_PATH = /path/to/log/file. Enable logging and write logs to /path/to/log/file

  • PINENTRY_TREZOR_DONT_FLASH = 1. Don’t show which keypad button was pressed when using the keyboard.

  • PINENTRY_TREZOR_KEYSET = 123456789. Use this letter grid for keyboard entry.

  • PINENTRY_TREZOR_DONT_EXPLAIN = 1. Don’t explain or show the grid when entering via TTY.

  • PINENTRY_TREZOR_FORCE_MESSAGE = My prompt message:. Use this prompt message instead of the GPG provided prompt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trezor-gpg-pinentry-tk-0.0.9.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file trezor-gpg-pinentry-tk-0.0.9.tar.gz.

File metadata

  • Download URL: trezor-gpg-pinentry-tk-0.0.9.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.1

File hashes

Hashes for trezor-gpg-pinentry-tk-0.0.9.tar.gz
Algorithm Hash digest
SHA256 26ff9f2b130f0324a0e5a9080770bbb83a601345f9a4bddc5c02e22ae6428f44
MD5 6a73a127d348dc9e4608235ab10969c6
BLAKE2b-256 001461f38146fde9b22e8aff247fa918b6b27dad557018b99a5feb32352e2caa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page