{"id":37109600,"url":"https://github.com/dbriggsie/downloadencrypt","last_synced_at":"2026-01-14T13:01:46.519Z","repository":{"id":149473939,"uuid":"615793631","full_name":"dbriggsie/downloadencrypt","owner":"dbriggsie","description":"This allows a user to run a file download using aria and then encrypt it immediately for storage.","archived":false,"fork":false,"pushed_at":"2023-03-31T14:55:16.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-19T21:01:04.672Z","etag":null,"topics":["downloader","enc","encrypted-data","encrypted-store","encryption-decryption"],"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/dbriggsie.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}},"created_at":"2023-03-18T17:39:15.000Z","updated_at":"2023-03-31T14:59:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"71860733-dd02-4e48-94ac-dfb84b066a60","html_url":"https://github.com/dbriggsie/downloadencrypt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dbriggsie/downloadencrypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbriggsie%2Fdownloadencrypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbriggsie%2Fdownloadencrypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbriggsie%2Fdownloadencrypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbriggsie%2Fdownloadencrypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbriggsie","download_url":"https://codeload.github.com/dbriggsie/downloadencrypt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbriggsie%2Fdownloadencrypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["downloader","enc","encrypted-data","encrypted-store","encryption-decryption"],"created_at":"2026-01-14T13:01:46.020Z","updated_at":"2026-01-14T13:01:46.504Z","avatar_url":"https://github.com/dbriggsie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encrypted File Downloader\nThis program downloads a file from a given URL and encrypts it using the recipient's public key. It uses the Aria2c downloader for fast and efficient downloads, and the OpenPGP library for encryption.\n\n## Installation\n### Prerequisites\n- Go 1.16 or later\n- Aria2c command line download utility\n- GnuPG command line tool for generating a public key\n\n## Install Aria2c\n### Debian/Ubuntu\n```\nsudo apt-get install aria2\n```\n### macOS (using Homebrew)\n```\nbrew install aria2\n```\n\n## Install GnuPG\n### Debian/Ubuntu\n```\nsudo apt-get install gnupg\n```\n### macOS (using Homebrew)\n\n```\nbrew install gnupg\n```\n\n## Build the DownloadEncrypt Program\n\nCopy the source code into a file named *`main.go`*.\nOpen a terminal and navigate to the directory containing *`main.go`*.\nRun the following command to build the executable:\n\n```\ngo build -o encrypted-file-downloader main.go\n```\nThis will create an executable named encrypted-file-downloader.\n\n## Usage\nGenerate a public/private key pair\nOpen a terminal and run the following command to generate a new public/private key pair:\n```\ngpg --gen-key\n```\nFollow the prompts to create the key pair. Use the default settings for key type, key size, and expiration date.\n\nOnce the key pair is created, export the public key in ASCII armored format:\n\n```\ngpg --armor --export \u003cyour-email-address\u003e \u003e recipient_public_key.asc\n```\nThis will save the public key to a file named recipient_public_key.asc.\n\nEncrypt and download a file\nRun the executable in a terminal:\n```\n./encrypted-file-downloader\n```\nEnter the download URL when prompted:\n```\nEnter download URL: \u003cdownload URL\u003e\n```\n\nOpen the *`recipient_public_key.asc`* file and copy the entire content (including the header and footer).\n\nEnter the recipient's public key in ASCII armored format when prompted:\n```\nEnter recipient public key: \u003cpaste the content of recipient_public_key.asc here\u003e\n```\nThe program will download the file, encrypt it using the recipient's public key, and save the encrypted file in the *`./encrypted directory`*.\n\nUpon successful encryption and saving of the file, you will see the following message:\n\n```\nFile downloaded and encrypted successfully!\n```\n\n*Note:* The program checks for available space in the ./encrypted directory before downloading and encrypting the file. If there is not enough space, the program will exit with an error message. Ensure that you have at least 5GB of free space in the ./encrypted directory before running the program.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbriggsie%2Fdownloadencrypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbriggsie%2Fdownloadencrypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbriggsie%2Fdownloadencrypt/lists"}