Home

Awesome

Haystack

Haystack is a command-line utility for breaking up sensitive files into user-determined quantities of indistinguishble fragments.

Installation

After cloning this repository, navigate to the root of the mix project directory and run the following commands.

mix deps.get
mix escript.build
mix escript.install

If you have not run elixir CLI programs before, you may also be prompted to append ~/$HOME/.mix/escripts to your $PATH

Usage

Fragmentation

Examples

Split file into 100 fragments (you will be prompted for an encryption password).

haystack fragment --in path/to/orig_file --count 100 --out path/to/frags_dir/

Split file into 100 fragments, read encryption password from a keyfile, and don't delete original file.

haystack fragment -i path/to/orig_file -c 100 -o path/to/frags_dir/ --keyfile path/to/keyfile --save_orig

Reassembly

Examples

Reassemble original file using a password prompt for decryption.

haystack reassemble --in path/to/frags_dir/ --out path/to/reassem_dir/

Reassemble original file using a keyfile for decryption.

haystack reassemble --in path/to/frags_dir/ --keyfile path/to/keyfile --out path/to/reassem_dir/