= README :vault: https://github.com/hashicorp/vault :0c6c13dd38: https://github.com/hashicorp/vault/commit/0c6c13dd38b9f921009b177797016dfc08dbc211 sss-vault is a CLI tool in Go that implements Shamir's Secret Sharing (SSS). The actual implementation is copied from the shamir/ directory of {vault}[HashiCorp's Vault]. The code in shamir/ is taken from {0c6c13dd38}[0c6c13dd38 (license: update headers to IBM Corp. (#10229) (#10233), 2025-10-21)]. The static/ directory contains static binaries for Linux/amd64 and Windows/amd64 in case no Go compiler is available. == Limitations SSS doesn't protect against (malicious) modifications of the parts. This makes it possible for `combine` to seemingly succeed but not recover the actual secret. This can also happen if fewer parts than the threshold are provided. If this is an issue, add a cryptographic hash to the secret before splitting. When the secret is used to decrypt authenticated data, any modifications are detected and the hash is not necessary. Make sure the secret is not stored in the shell history or anywhere similar, such as terminal scrollback. == Build Needs Go to build, no external dependencies $ go build == Usage .... $ ./sss-vault split 5 3 Waiting for secret on stdin until EOF Test Message ! Generated 5 parts with threshold 3 part 1: YKJz2uuG6/n80bzKjm5Yjw== part 2: Es+deRZMztqSCClXozmfiw== part 3: B8z9cZOdVlMF/404WONuPQ== part 4: lnqwvWBJRAcRvPj3WwW6Gw== part 5: 6jHfMI3pqqj6MC7SJb9iBg== .... .... $ ./sss-vault combine Waiting for parts on stdin until EOF (one per line) 6jHfMI3pqqj6MC7SJb9iBg== YKJz2uuG6/n80bzKjm5Yjw== B8z9cZOdVlMF/404WONuPQ== Recovered secret: Test Message ! .... Terminal injection is avoided by escaping if necessary: .... $ ./sss-vault combine [...] Recovered secret (escaped): "\x1b[31mterminal injection\x1b[0m" .... == License The CLI is licensed under GPL-3.0-or-later and the SSS code from Vault under MPL-2.0.