{"id":14384185,"url":"https://github.com/simonfrey/s4","last_synced_at":"2025-04-04T16:13:14.984Z","repository":{"id":41966038,"uuid":"272260224","full_name":"simonfrey/s4","owner":"simonfrey","description":"Simple Shamir's Secret Sharing (s4) - A go package giving a easy to use interface for the shamir's secret sharing algorithm","archived":false,"fork":false,"pushed_at":"2025-01-21T09:23:35.000Z","size":1634,"stargazers_count":152,"open_issues_count":2,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T15:06:03.794Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"https://simon-frey.com/s4","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/simonfrey.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":"2020-06-14T18:27:18.000Z","updated_at":"2025-03-06T04:21:44.000Z","dependencies_parsed_at":"2023-11-22T14:43:41.602Z","dependency_job_id":"39c68b89-d9cd-407b-9d3e-0d39a1eef0bb","html_url":"https://github.com/simonfrey/s4","commit_stats":{"total_commits":64,"total_committers":13,"mean_commits":4.923076923076923,"dds":0.6875,"last_synced_commit":"5abc9c8c6af536fc0f6483076578a6fc90cdce63"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonfrey%2Fs4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonfrey%2Fs4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonfrey%2Fs4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonfrey%2Fs4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonfrey","download_url":"https://codeload.github.com/simonfrey/s4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208139,"owners_count":20901570,"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":["hacktoberfest"],"created_at":"2024-08-28T18:01:11.418Z","updated_at":"2025-04-04T16:13:14.957Z","avatar_url":"https://github.com/simonfrey.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Simple Shamir's Secret Sharing (s4)\n\nWith **S**imple **S**hamir's **S**ecret **S**haring (s4) I want to provide you an easy to use interface for this beautiful little piece of math.\n\nPlease note that s4 is provided as it is and I do not take responsibility for any bugs. s4 is a tiny layer around [hashicorp vault shamir](https://github.com/hashicorp/vault) and golang's [AES encryption](https://github.com/gtank/cryptopasta/blob/master/encrypt.go).\n\n## 📚 Usage as library\n\nYou can use s4 as normal go library in your go projects by importing it via `import \"github.com/simonfrey/s4/pkg/s4\"` and en-/decrypt\nbytes to byte shares and vice versa\n\n## 🏠 Building the WASM for the frontend\n\nI assume you have a [go](https://golang.org/) build environment setup in your machine. \n\nIn order to build \u0026 pack the web assembly file for the frontend please use the following command in the top level directory:\n```\n./build.sh\n```\n\nThis will build you the required file. You now can copy to `build` folder to your web server (or use it locally) and it\nshould run s4 as intended.\n\n### Building the frontend in Docker (in case you don't have a [go](https://golang.org/) build environment setup in your machine.)\n\n```\ndocker run --rm -v .:/app docker.io/golang:1.23.3 env --chdir=/app -S ./build.sh\n```\n\n`docker` can also be replaced with `podman` in the above command, if you prefer to use it.\n\nFind the frontend in the `build/` directory, containing all resources in-line.  \n\n## 💸 Report Bugs \u0026 Tip\n\nPlease use [Github Issues](https://github.com/simonfrey/s4/issues) in order to report bugs\n\n💸 If you want to tip me for my work on this project [feel free to do so](https://simon-frey.com/tip) 💸\n\n## 🗣 Discussions\n\ns4 was broadly discussed on [HackerNews](https://news.ycombinator.com/item?id=23541949), and was mentioned in [golang weekly](https://golangweekly.com/issues/317) in June 2020.\n\n## 📃 License\n[MIT License](https://github.com/simonfrey/s4/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonfrey%2Fs4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonfrey%2Fs4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonfrey%2Fs4/lists"}