{"id":20565760,"url":"https://github.com/phenax/anypinentry","last_synced_at":"2025-04-14T15:35:32.844Z","repository":{"id":38026766,"uuid":"277375017","full_name":"phenax/anypinentry","owner":"phenax","description":"A flexible pinentry script for GNUpg. Uses dmenu by default.","archived":false,"fork":false,"pushed_at":"2025-01-10T17:08:52.000Z","size":58,"stargazers_count":16,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T00:15:42.769Z","etag":null,"topics":["dmenu","gpg","password","pinentry","prompt","rofi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phenax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-05T20:05:26.000Z","updated_at":"2025-03-29T21:05:51.000Z","dependencies_parsed_at":"2024-11-16T04:38:56.009Z","dependency_job_id":"7ac722e4-926d-478a-85e2-6cfa765365fe","html_url":"https://github.com/phenax/anypinentry","commit_stats":null,"previous_names":["phenax/anypinentry"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Fanypinentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Fanypinentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Fanypinentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Fanypinentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phenax","download_url":"https://codeload.github.com/phenax/anypinentry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248906937,"owners_count":21181245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dmenu","gpg","password","pinentry","prompt","rofi"],"created_at":"2024-11-16T04:39:00.737Z","updated_at":"2025-04-14T15:35:32.838Z","avatar_url":"https://github.com/phenax.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AnyPinentry\nAnyPinentry is a wrapping interface to all kinds of prompts instead of gnupg's pinentry.\nYou can now use any interface for password and confirmation prompts (`dmenu`, `rofi`, `read`, `systemd-ask-password`, `curses`, `etc`).\n\n\u003e Note: This is NOT a complete replacement for pinentry programs but it should cover most use-cases. Report any issues you face so the program can be improved\n\n## Dependencies\n* sh\n* dmenu with password patch (optional: for the default config only)\n* notify-send (optional: for the default config only)\n\n## Usage\n1. Clone the repo to anywhere on your machine (you should maintain a fork in case you want to configure the default behavior)\n2. Run `chmod +x ./anypinentry` inside the cloned directory\n3. Edit the script file if you want to configure it. \n4. Edit `~/.gnuph/gpg-agent.conf` (or create it) and add the line `pinentry-program /\u003cpath-to-your-clone\u003e/anypinentry`\n5. Run `gpg-agent reload` to reload the config or logout and log back in\n6. Gpg should now be using your prefered program for pinentry\n\n## Config\nThe following variables inside `./anypinentry` script file can be configured.\nYou will need to use `AP_PROMPT`, `AP_YES`, `AP_NO`, `AP_ERROR` variables inside your actions.\n\n* `prompt_action` - Action to show a prompt asking for password (Example using dmenu with password patch - `dmenu -P -p \"$AP_PROMPT\"`)\n* `confirm_action` - Action to confirm something (YES or NO) (Example with dmenu - `printf \"%s\\n%s\" \"$AP_YES\" \"$AP_NO\" | dmenu -p \"$AP_PROMPT\"`)\n* `display_error_action` - Action to display error messages to user (Example with notify-send - `notify-send \"$AP_ERROR\"`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenax%2Fanypinentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphenax%2Fanypinentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenax%2Fanypinentry/lists"}