#file-encryption #split #command-line-tool #password #threshold #shards #filetime

bin+lib 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.

2 stable releases

1.2.1 Sep 19, 2023
1.1.1 Aug 7, 2023
1.0.0 Aug 6, 2023

#2446 in Command line utilities

MIT license

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

chocolatey

choco install horcrust

Crates

crates.io

cargo install horcrust

Install directly

  1. Download latest release for your system.

  2. 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