{"id":16908990,"url":"https://github.com/alexcb/secretshare","last_synced_at":"2025-08-23T22:05:56.075Z","repository":{"id":65199514,"uuid":"303828072","full_name":"alexcb/secretshare","owner":"alexcb","description":"a command line tool for using public/private key encryption for encrypting data on the command line","archived":false,"fork":false,"pushed_at":"2023-04-25T22:53:23.000Z","size":33128,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-17T03:44:12.311Z","etag":null,"topics":["alice","bob","earthly","encryption","go","sharing-secrets"],"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/alexcb.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":"2020-10-13T21:02:30.000Z","updated_at":"2023-05-06T14:13:08.000Z","dependencies_parsed_at":"2024-06-19T09:58:59.907Z","dependency_job_id":"54e4e05b-13f8-4d26-a19b-85f32afe56e6","html_url":"https://github.com/alexcb/secretshare","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":"0.19444444444444442","last_synced_commit":"0bbae90699dcbf4322ae0beda5f6b6b4a9a7549c"},"previous_names":["alexcb/secret-share"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/alexcb/secretshare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcb%2Fsecretshare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcb%2Fsecretshare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcb%2Fsecretshare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcb%2Fsecretshare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexcb","download_url":"https://codeload.github.com/alexcb/secretshare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexcb%2Fsecretshare/sbom","scorecard":{"id":180986,"data":{"date":"2025-08-11","repo":{"name":"github.com/alexcb/secretshare","commit":"0bbae90699dcbf4322ae0beda5f6b6b4a9a7549c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: build/darwin/amd64/secretshare:1","Warn: binary detected: build/linux/amd64/secretshare:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.9 not signed: https://api.github.com/repos/alexcb/secretshare/releases/100876386","Warn: release artifact v0.0.8 not signed: https://api.github.com/repos/alexcb/secretshare/releases/44669125","Warn: release artifact v0.0.7 not signed: https://api.github.com/repos/alexcb/secretshare/releases/44666340","Warn: release artifact v0.0.6 not signed: https://api.github.com/repos/alexcb/secretshare/releases/44604785","Warn: release artifact v0.0.5 not signed: https://api.github.com/repos/alexcb/secretshare/releases/44604387","Warn: release artifact v0.0.9 does not have provenance: https://api.github.com/repos/alexcb/secretshare/releases/100876386","Warn: release artifact v0.0.8 does not have provenance: https://api.github.com/repos/alexcb/secretshare/releases/44669125","Warn: release artifact v0.0.7 does not have provenance: https://api.github.com/repos/alexcb/secretshare/releases/44666340","Warn: release artifact v0.0.6 does not have provenance: https://api.github.com/repos/alexcb/secretshare/releases/44604785","Warn: release artifact v0.0.5 does not have provenance: https://api.github.com/repos/alexcb/secretshare/releases/44604387"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T18:52:34.274Z","repository_id":65199514,"created_at":"2025-08-16T18:52:34.274Z","updated_at":"2025-08-16T18:52:34.274Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271770390,"owners_count":24817645,"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-08-23T02:00:09.327Z","response_time":69,"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":["alice","bob","earthly","encryption","go","sharing-secrets"],"created_at":"2024-10-13T18:53:50.167Z","updated_at":"2025-08-23T22:05:56.042Z","avatar_url":"https://github.com/alexcb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Share secrets using rsa public/private encryption.\n\n## Installation\n\n### Linux-amd64 (e.g. intel)\n\n    sudo /bin/sh -c 'wget https://github.com/alexcb/secretshare/releases/latest/download/secretshare-linux-amd64 -O /usr/local/bin/secretshare \u0026\u0026 chmod +x /usr/local/bin/secretshare'\n\n### Linux-arm64 (e.g. raspberry pi v4)\n\n    sudo /bin/sh -c 'wget https://github.com/alexcb/secretshare/releases/latest/download/secretshare-linux-arm64 -O /usr/local/bin/secretshare \u0026\u0026 chmod +x /usr/local/bin/secretshare'\n\n### MacOS-amd64 (e.g. intel)\n\n    sudo /bin/sh -c 'wget https://github.com/alexcb/secretshare/releases/latest/download/secretshare-darwin-amd64 -O /usr/local/bin/secretshare \u0026\u0026 chmod +x /usr/local/bin/secretshare'\n\n### MacOS-arm64 (e.g. M1/M2)\n\n    sudo /bin/sh -c 'wget https://github.com/alexcb/secretshare/releases/latest/download/secretshare-darwin-arm64 -O /usr/local/bin/secretshare \u0026\u0026 chmod +x /usr/local/bin/secretshare'\n\n### Usage\n\nSuppose Bob wants to receive some data from Alice, first Bob must run `secretshare` locally:\n\n    secretshare\n\nThis will generate a new public/private key, and will then print out a help message containing Bob's public key:\n\n    To decrypt data, run: secretshare \u003c file_to_decrypt\n    To encrypt data, run: secretshare \u003cencryption_key\u003e \u003c data_to_encrypt\n\n    For example if someone wanted to send you data, they would run:\n    secretshare AAAAB3NzaC1yc2EAAAADAQABAAABAQCagdQYuPXgzyfg2k58CYTntkSo2rI9QtZWYnk45n6oZGW8wGUoqrmCeLCbCo7HG6JJD+jUuWx9ELmC2rRINQnhJdBdwbMlOx8v7oSr60xR8b0pYRL1gm6DseU0u/pClBfGcwV7tsxuRspk/c3/cpYOFcs2vN5mXo29qSpg1w4iE3snoAOQGajN1U4sT3rht5hjx188d9MxuBTnqd0yW7RQMSS8YqdszaAiwUQ2rtwMKDUp5CT+5LZ/QW/EMexRSEfgkjGGmz+NlBAhGDTrBByw2Dl+6pZESAtxmCaZ6vzG+CSqH5oQVXVl/A9YEQiuDVGdxcfF3jYmlYIfISeMtRTj \u003c data_to_send\n\nBob can then safely copy and paste his public key, and send it to Alice.\n\nAlice will then run:\n\n    echo 'Hi Bob, your new password is \"querty\".' | secretshare AAAAB3NzaC1yc2EAAAADAQABAAABAQCagdQYuPXgzyfg2k58CYTntkSo2rI9QtZWYnk45n6oZGW8wGUoqrmCeLCbCo7HG6JJD+jUuWx9ELmC2rRINQnhJdBdwbMlOx8v7oSr60xR8b0pYRL1gm6DseU0u/pClBfGcwV7tsxuRspk/c3/cpYOFcs2vN5mXo29qSpg1w4iE3snoAOQGajN1U4sT3rht5hjx188d9MxuBTnqd0yW7RQMSS8YqdszaAiwUQ2rtwMKDUp5CT+5LZ/QW/EMexRSEfgkjGGmz+NlBAhGDTrBByw2Dl+6pZESAtxmCaZ6vzG+CSqH5oQVXVl/A9YEQiuDVGdxcfF3jYmlYIfISeMtRTj\n\nWhich will output an encrypted message:\n\n    gevonaUXKj7Wmct65A8yVJWTp9D/sd6YbOCi4BtrKGeUjdWs/fa0BbP0IQhdP2j4fS6n12zGmgkOXHLJyJnG9OPxZ+EaPcIfVBs5TfvNnC/8Dfu+V5ScRIYXBHVjRsDOBQCYzeOSwFvq1vUyuq20Wr7s3szbgFkDttxPsaXMKyxTcVEqkgSp09dhV7roqBmsRUDbAFpIWLIUb4ZAtCfU6rbWaAes9acSmMT3fvW/no1gsa3/Wobdpj3T7WVrQsj+upr2ANlFyA3Bt7IOKxmJhrrRYOBxAkk6NEnYmrHWR26KGRhz/VRPxAZWsB/qMoVAw5ukjnVple2+x8SMrIE9Gg==\n\nAlice can then safely send this data back to Bob, who can decrypt it by running:\n\n    echo \"gevonaUXKj7Wmct65A8yVJWTp9D/sd6YbOCi4BtrKGeUjdWs/fa0BbP0IQhdP2j4fS6n12zGmgkOXHLJyJnG9OPxZ+EaPcIfVBs5TfvNnC/8Dfu+V5ScRIYXBHVjRsDOBQCYzeOSwFvq1vUyuq20Wr7s3szbgFkDttxPsaXMKyxTcVEqkgSp09dhV7roqBmsRUDbAFpIWLIUb4ZAtCfU6rbWaAes9acSmMT3fvW/no1gsa3/Wobdpj3T7WVrQsj+upr2ANlFyA3Bt7IOKxmJhrrRYOBxAkk6NEnYmrHWR26KGRhz/VRPxAZWsB/qMoVAw5ukjnVple2+x8SMrIE9Gg==\" | secretshare\n\nWhich will output the original message:\n\n    Hi Bob, your new password is \"querty\".\n\n## Under the hood\n\nUnder the hood `secretshare` will generate a private and public key stored under ~/.secretshare and ~/.secretshare.pub respectively. The public key is what is used by alice to encrypt data that can only be decrypted using the private key. If we `cat ~/.secretshare.pub`, we can see the same data is sent in the above usage example:\n\n    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCagdQYuPXgzyfg2k58CYTntkSo2rI9QtZWYnk45n6oZGW8wGUoqrmCeLCbCo7HG6JJD+jUuWx9ELmC2rRINQnhJdBdwbMlOx8v7oSr60xR8b0pYRL1gm6DseU0u/pClBfGcwV7tsxuRspk/c3/cpYOFcs2vN5mXo29qSpg1w4iE3snoAOQGajN1U4sT3rht5hjx188d9MxuBTnqd0yW7RQMSS8YqdszaAiwUQ2rtwMKDUp5CT+5LZ/QW/EMexRSEfgkjGGmz+NlBAhGDTrBByw2Dl+6pZESAtxmCaZ6vzG+CSqH5oQVXVl/A9YEQiuDVGdxcfF3jYmlYIfISeMtRTj\n\n\n## Building from Source\n\nsecretshare makes use of the [Earthly](https://www.earthly.dev/) build system. To build from source,\nfirst download the [earthly](https://github.com/earthly/earthly) command, then run:\n\n    earthly +secretshare-all\n\nwhich will produce binary files under `./build/\u003cplatform\u003e/amd64/secretshare`\n\n### Release\n\nTo release a new version, run the following command:\n\n    RELEASE_TAG=v0.0.2 earthly --build-arg RELEASE_TAG --secret GITHUB_TOKEN --push +release\n\n### Preview\n\n[![asciicast](preview.gif)](https://asciinema.org/a/369195?\u0026speed=2)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcb%2Fsecretshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexcb%2Fsecretshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexcb%2Fsecretshare/lists"}