2 stable releases
1.2.1 | Sep 19, 2023 |
---|---|
1.1.1 | Aug 7, 2023 |
1.0.0 |
|
#2446 in Command line utilities
38KB
736 lines
Horcrust
Horcrust is a command-line-tool which splits a file into encrypted shards for safekeeping. As long as the specified threshold is met, a user can resurrect their original file at any time - no password necessary.
This project is a Rust implementation of the original horcrux
Usage
Horcrust only has 2 commands split
and bind
.
Splitting
horcrust split classified.txt --shards 4 --threshold 2
The split command supports standard input!
cat ../files/classified.txt | horcrust split --shards 4 --threshold 2
You can specify where the shards can be placed using the optional directory
argument
horcrust split classified.txt --shards 4 --threshold 4 --destination ../../documents/stash
Binding When you're ready to recover your secret do the following.
horcrust bind ../secrets
Installation
Homebrew
brew tap codycline/taps
brew install codycline/taps/horcrust
Chocolatey
choco install horcrust
Crates
cargo install horcrust
Install directly
-
Download latest release for your system.
-
Unpack the compressed archive into your bin folder
sudo tar -xf ./Downloads/horcrust-VERSION-x86_64-unknown-linux-musl.tar.gz
horcrust --directory ~/usr/local/bin
Testing
cargo clippy
cargo test -- --test-threads=1
Dependencies
~5.5MB
~95K SLoC