# 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
Run pip install trezor-gpg-pinentry-tk
Find where it’s installed with by running which trezor-gpg-pinentry-tk
Add this line to $GPGHOME/gpg-agent.conf: pinentry-program /path/to/trezor-gpg-pinentry-tk
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.
Metadata
Release files for trezor-gpg-pinentry-tk 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trezor-gpg-pinentry-tk-0.0.10.tar.gz | 14.9 kB | Without provenance | Details for trezor-gpg-pinentry-tk-0.0.10.tar.gz |
Release files / trezor-gpg-pinentry-tk-0.0.10.tar.gz
| Download URL | trezor-gpg-pinentry-tk-0.0.10.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87f34929b2813f949bab405825eb3587691adbf93681252be7ae2a39065e01ce
|
|
BLAKE2b-256 checksum How to use checksums |
f55dc3415f4c6927313bc7cc07e73476dcec314ea34136c0df43794353782940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
|
Security for trezor-gpg-pinentry-tk 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.