{"id":38861710,"url":"https://github.com/declan94/secret-share","last_synced_at":"2026-01-17T14:22:30.073Z","repository":{"id":57552985,"uuid":"97536349","full_name":"declan94/secret-share","owner":"declan94","description":"A secret sharing tool based on Shamir's Secret Sharing algorithm implemented with pure Golang","archived":false,"fork":false,"pushed_at":"2017-07-21T17:30:18.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T02:08:33.838Z","etag":null,"topics":["golang","secure","secure-sharing","security","security-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","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/declan94.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}},"created_at":"2017-07-18T01:01:39.000Z","updated_at":"2021-03-01T19:53:45.000Z","dependencies_parsed_at":"2022-09-26T18:50:54.941Z","dependency_job_id":null,"html_url":"https://github.com/declan94/secret-share","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/declan94/secret-share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declan94%2Fsecret-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declan94%2Fsecret-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declan94%2Fsecret-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declan94%2Fsecret-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/declan94","download_url":"https://codeload.github.com/declan94/secret-share/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declan94%2Fsecret-share/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: 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":["golang","secure","secure-sharing","security","security-tools"],"created_at":"2026-01-17T14:22:29.998Z","updated_at":"2026-01-17T14:22:30.064Z","avatar_url":"https://github.com/declan94.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# secret-share\na secret sharing tool based on Shamir's Secret Sharing algorithm implemented with pure Golang\n\n## About\nShamir's Secret Sharing is an algorithm in cryptography created by Adi Shamir. \nIt is a form of secret sharing, where a secret is divided into parts, giving each participant its own unique part, where some of the parts or all of them are needed in order to reconstruct the secret.\n\nCounting on all participants to combine the secret might be impractical, and therefore sometimes the threshold scheme is used where any ```k``` of the parts are sufficient to reconstruct the original secret.\n\nThis is a small tool based on Shamir's Secret Sharing algorithm implemented by [codahale](https://github.com/codahale/sss), which can create up to 255 share parts from one file or directory,\nand recover from some of the parts (not less then the given param ```k```)\n\n[More about Shamir's Secret Sharing](https://en.wikipedia.org/wiki/Shamir's_Secret_Sharing)\n\n## Install\n\n#### Install from source code\nYou have to install go tools first, see [here](https://golang.org/doc/install#install).\n\nAfter that, execute commands below:\n```\n$ go get -u github.com/declan94/secret-share\n$ sudo cp `go env GOPATH`/bin/secret-share /usr/local/bin\n```\n\n#### Install from tarball\nFor macos or linux, you can download [Release Tarball](https://github.com/declan94/secret-share/releases), unzip it then directly use the pre-built binary program.\n\n## Usage\n\n#### Create sharing parts\n```\n$ secret-share -k 3 path/to/secretfile path/to/part1 path/to/part2 path/to/part3 path/to/part4\n```\nThis will create 4 sharing parts (part1, part2, part3, part4), and at least 3 of them are needed to recover the original secretfile.\n\nWhen ```-k``` is not specified, all created sharing parts are needed to recover the original secretfile.\n\nWhen secretfile is a directory, all sharing parts will be directory with same hierarchical structure.\n\n#### Recover secret file (directory)\n```\n$ secret-share -r path/to/recover path/to/part1 path/to/part2 path/to/part3\n```\nThis will recover original file or directory from the given sharing parts.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeclan94%2Fsecret-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeclan94%2Fsecret-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeclan94%2Fsecret-share/lists"}