Horcrux is a command-line tool built in Go that enables you to split a file into encrypted fragments (“horcruxes”) so you don’t need to remember a pass-code for later decryption. It uses the Shamir Secret Sharing scheme to break an encryption key into multiple pieces, such that only a threshold of them can reconstruct the original file. You select the number of fragments to create and the minimum number required to recover the file, then scatter the fragments (e.g., on USBs or cloud locations). The tool provides a “split” command to create the fragments and a “bind” command to recombine them to the original file. It’s especially aimed at people who want strong security for sensitive large files and want to avoid remembering complex pass-codes, and also those who may distribute fragments across multiple locations. The logic is built on Go’s crypto libraries and the underlying Shamir implementation, with an emphasis on simplicity and security rather than password-based keying.
Features
- Split a file into N encrypted fragments and require M of them to reconstruct
- Bind the fragments back into the original file with a simple command
- Use of Shamir Secret Sharing scheme to handle key splitting and threshold recovery
- Installation via standard package managers (e.g., Homebrew, Scoop) or binaries
- No password to remember: security is in the distribution of fragments, not memorisation
- Cross-platform support for Go binaries (Linux, macOS)