{"id":28075263,"url":"https://github.com/suptarr/go-pgp","last_synced_at":"2025-05-13T00:55:50.040Z","repository":{"id":292453503,"uuid":"980952519","full_name":"SupTarr/go-pgp","owner":"SupTarr","description":"Go utilities for performing PGP encryption and decryption","archived":false,"fork":false,"pushed_at":"2025-05-10T03:28:54.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T00:55:39.140Z","etag":null,"topics":["golang","pgp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SupTarr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-10T02:51:08.000Z","updated_at":"2025-05-10T03:28:57.000Z","dependencies_parsed_at":"2025-05-10T04:32:06.336Z","dependency_job_id":null,"html_url":"https://github.com/SupTarr/go-pgp","commit_stats":null,"previous_names":["suptarr/go-pgp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupTarr%2Fgo-pgp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupTarr%2Fgo-pgp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupTarr%2Fgo-pgp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupTarr%2Fgo-pgp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SupTarr","download_url":"https://codeload.github.com/SupTarr/go-pgp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850890,"owners_count":21973672,"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":["golang","pgp"],"created_at":"2025-05-13T00:55:49.298Z","updated_at":"2025-05-13T00:55:50.016Z","avatar_url":"https://github.com/SupTarr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go PGP Utility\n\nThis project provides a set of Go utilities for performing PGP encryption and decryption, as well as some file manipulation tasks like writing to TXT, CSV, and creating ZIP archives.\n\n## Features\n\n* **PGP Encryption**: Encrypt files using a public PGP key.\n* **PGP Decryption**:\n  * Decrypt files using a private PGP key and a passphrase.\n  * Decrypt files using a private PGP key from a keyring (without a passphrase if the key is not encrypted).\n* **File Utilities**:\n  * Write content to text files.\n  * Write data to CSV files.\n  * Create ZIP archives from a list of files.\n\n## Prerequisites\n\n* Go (version 1.18 or later recommended)\n* PGP keys (public and private) for testing encryption and decryption.\n\n## Dependencies\n\n* [github.com/ProtonMail/gopenpgp/v3](https://github.com/ProtonMail/gopenpgp)\n\n```bash\ngo mod tidy\n# or\ngo get github.com/ProtonMail/gopenpgp/v3/crypto\n```\n\n## Setup\n\n1. **Clone the repository (if applicable) or ensure you have the project files.**\n2. **Place your PGP keys**:\n\n    * For encryption: `public.pgp` (or update the path in `main.go`)\n    * For decryption with passphrase: `private.pgp` (or update the path in `main.go`)\n    * For decryption with keyring: `secret.asc` (or update the path in `main.go`)\n\n3. **Prepare input files**:\n\n    * Create a file `decrypted/test.txt` with content to be encrypted.\n    * Place an encrypted file at `encrypted/test.txt.zip.pgp` for decryption with passphrase.\n    * Place an encrypted file at `encrypted/test.csv.gpg` for decryption with keyring.\n    * Ensure the output directories (e.g., `decrypted/`, `encrypted/`) exist or create them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuptarr%2Fgo-pgp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuptarr%2Fgo-pgp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuptarr%2Fgo-pgp/lists"}