{"id":29767727,"url":"https://github.com/501urchin/pyro","last_synced_at":"2025-07-27T02:15:22.063Z","repository":{"id":257001446,"uuid":"856455985","full_name":"501urchin/pyro","owner":"501urchin","description":"This Go-based command-line tool simplifies the management of PGP keys and encrypted communications.","archived":false,"fork":false,"pushed_at":"2024-09-18T15:39:58.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T18:27:49.404Z","etag":null,"topics":["cli","golang","pgp-encryption","pgp-key"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/501urchin.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":"2024-09-12T15:51:01.000Z","updated_at":"2024-09-18T15:40:01.000Z","dependencies_parsed_at":"2024-11-09T21:27:51.263Z","dependency_job_id":null,"html_url":"https://github.com/501urchin/pyro","commit_stats":null,"previous_names":["scott-mescudi/pyro","501urchin/pyro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/501urchin/pyro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/501urchin%2Fpyro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/501urchin%2Fpyro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/501urchin%2Fpyro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/501urchin%2Fpyro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/501urchin","download_url":"https://codeload.github.com/501urchin/pyro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/501urchin%2Fpyro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267286522,"owners_count":24064343,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","golang","pgp-encryption","pgp-key"],"created_at":"2025-07-27T02:15:21.291Z","updated_at":"2025-07-27T02:15:22.058Z","avatar_url":"https://github.com/501urchin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyro - README\n\nThis program provides a simple interface for managing PGP (Pretty Good Privacy) keys, encrypting/decrypting messages, and organizing PGP key directories. It helps users handle their PGP keys and perform common cryptographic tasks like encryption, decryption, key addition, and removal.\n\n## Features\n\n- Initialize PGP key directories.\n- Add, remove, and move PGP keys between directories.\n- Encrypt messages using a public key.\n- Decrypt messages using a private key.\n- Copy PGP keys to the clipboard.\n- List keys stored in different directories.\n- Generate a PGP keypair with empty fields. (not recommended for long term use)\n## Prerequisites\n\n- **Go** must be installed on your machine to build/run the program.\n- **Clipboard support** is enabled using the `github.com/atotto/clipboard` package. Ensure your system supports clipboard operations.\n\n## Directory Structure\n\nThe program works with a predefined set of directories to store your keys:\n- `keys/`: Root directory.\n- `keys/external/`: Directory for storing external public keys.\n- `keys/vault/private/`: Directory for storing private keys.\n- `keys/vault/public/`: Directory for storing internal public keys.\n\nThe directory structure is automatically created when you initialize the program.\n\n## Usage\n\nTo use the program, execute the Go file with various flags and options. Below are the commands and examples:\n\n### 1. Initialize Key Directories\n\nThis command creates the necessary directories for key management.\n\n```bash\n./GO-pgp -init\n```\n\n### 2. List PGP Keys\n\nList the keys in different directories. Available options:\n- `pub` - Lists external public keys.\n- `vault` - Lists keys in the vault (both private and public).\n- `all` - Lists all available keys.\n\n```bash\n./GO-pgp -list vault\n```\n\n### 3. Add a PGP Key\n\nAdd a new key manually to one of the directories. You can add it to `external`, `vault-private`, or `vault-public`.\n\n```bash\n./GO-pgp -add mykey external\n```\n\nThe program will allow you to enter the PGP key content line-by-line. Type `:wq` to save and exit.\n\n### 4. Move a Key\n\nMove a key file to another directory.\n\n```bash\n./GO-pgp -mv mykey vault-private\n```\n\n### 5. Remove a PGP Key\n\nRemove a key from one of the directories.\n\n```bash\n./GO-pgp -rm mykey external\n```\n\n### 6. Copy a Key to Clipboard\n\nCopy the content of a key file to the system clipboard.\n\n```bash\n./GO-pgp -copy mykey vault-private\n```\n\n### 7. Encrypt a Message\n\nEncrypt a message using a public key. Provide the key name and the directory where it's stored.\n\n```bash\n./GO-pgp -encrypt recipient_pubkey external\n```\n\nThe program will prompt you to enter the message. Type `:wq` to finish, and the encrypted message will be printed and copied to the clipboard.\n\n### 8. Decrypt a Message\n\nDecrypt a message using a private key. The private key must be located in the `vault-private` directory.\n\n```bash\n./GO-pgp -decrypt my_private_key\n```\n\nThe program will prompt you to enter the encrypted message. Type `:wq` to finish, and the decrypted message will be printed and copied to the clipboard.\n\n## Command Overview\n\n```plaintext\n-init\n\tInitialize the PGP key directories.\n\n-list \u003cdirectory\u003e\n\tList all PGP keys in the specified directory.\n\tOptions: 'pub', 'vault', 'all'\n\n-add \u003ckey_filename\u003e \u003cdirectory\u003e\n\tAdd a new PGP key.\n\tOptions: 'external', 'vault-private', 'vault-public'\n\n-mv \u003cfile_path\u003e \u003cdestination_directory\u003e\n\tMove a key file.\n\tOptions: 'external', 'vault-private', 'vault-public'\n\n-rm \u003ckey_filename\u003e \u003cdirectory\u003e\n\tRemove a PGP key.\n\tOptions: 'external', 'vault-private', 'vault-public'\n\n-copy \u003ckey_filename\u003e \u003cdirectory\u003e\n\tCopy the content of a key to the clipboard.\n\tOptions: 'external', 'vault-private', 'vault-public'\n\n-encrypt \u003ckey_filename\u003e \u003cdirectory\u003e\n\tEncrypt a message using the specified public key.\n\n-decrypt \u003ckey_filename\u003e\n\tDecrypt a message using the specified private key.\n```\n\n## Examples\n\n- **Initialize the tool**:\n  ```bash\n  ./GO-pgp -init\n  ```\n\n- **Add a new key to the external directory**:\n  ```bash\n  ./GO-pgp -add mykey external\n  ```\n\n- **Encrypt a message using an external public key**:\n  ```bash\n  ./GO-pgp -encrypt recipient_pubkey external\n  ```\n\n- **Decrypt a message using a private key**:\n  ```bash\n  ./GO-pgp -decrypt my_private_key\n  ```\n\n## Notes\n\n- The program supports both public and private key operations.\n- Ensure that the required key files are stored in the appropriate directories before performing encryption or decryption.\n- The clipboard is used for convenient transfer of encrypted/decrypted messages and keys.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F501urchin%2Fpyro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F501urchin%2Fpyro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F501urchin%2Fpyro/lists"}