This series highlights best-of-breed utilities. We cover a wide range of utilities including tools that boost your productivity, help you manage your workflow, and lots more besides.
horcrux is an open source tool that’s designed to split files and keep them secure with encryption. This encryption doesn’t require remembering a passphrase or retaining a private key. Instead, the utility uses the Shamir Secret Sharing Scheme to break an encryption key into parts that can be recombined to create the original key, but only requiring a certain threshold to do so.
The tool therefore includes redundancy so that you can resurrect the original file without needing access to all of the split files.
There isn’t an Ubuntu package available for the utility. Instead go to the project’s GitHub directory and download the appropriate tarball for your system. We selected the file
Extract the file with the command:
$ tar zxvf horcrux_0.2_Linux_x86_64.tar.gz.
Then copy the horcrux file to a directory in your PATH such as /usr/local/bin
$ sudo cp horvrux /usr/local/bin
The horcrux tool runs from the command-line but there aren’t a great slue of commands to learn. In fact there’s just two command, split and bind.
Let’s suppose you have an file called inventory.txt and want to split into 5 parts but require only 3 of these parts to resurrect the file. We issue the horcrux’s split command:
$ horcrux -t 3 -n 5 split inventory.txt
This command generates output:
Let’s examine the size of these generated files.
You’ll notice the program copies the encrypted file into each horcrux. This will use a lot of storage with a large file that’s split into many pieces. There are a number of different ways the project could seek to reduce the size of each generated file. However, as there doesn’t seem to be active development currently this might be something a budding Go developer may wish to take forward.
horcrux is a very useful tool if you want to keep important files secure with encryption and have multiple locations to store the generated files. The utility is simple, and quick to learn with only 2 commands.
Developer: Jesse Duffield
License: MIT License
Complete list of articles in this series:
|Abricotine||Markdown editor with inline preview functionality|
|AES Crypt||Encrypt files using the Advanced Encryption Standard|
|Ananicy||Shell daemon created to manage processes’ IO and CPU priorities|
|broot||Next gen tree explorer and customizable launcher|
|Cerebro||Fast application launcher|
|cheat.sh||Community driven unified cheat sheet|
|CopyQ||Advanced clipboard manager|
|croc||Securely transfer files and folders from the command-line|
|Deskreen||Live streaming your desktop to a web browser|
|duf||Disk usage utility with more polished presentation than the classic df|
|exa||A turbo-charged alternative to the venerable ls command|
|Extension Manager||Browse, install and manage GNOME Shell Extensions|
|fd||Wonderful alternative to the venerable find|
|fkill||Kill processes quick and easy|
|fontpreview||Quickly search and preview fonts|
|horcrux||File splitter with encryption and redundancy|
|Kooha||Simple screen recorder|
|KOReader||Document viewer for a wide variety of file formats|
|Imagine||A simple yet effective image optimization tool|
|LanguageTool||Style and grammar checker for 30+ languages|
|Liquid Prompt||Adaptive prompt for Bash & Zsh|
|lnav||Advanced log file viewer for the small-scale; great for troubleshooting|
|lsd||Like exa, lsd is a turbo-charged alternative to ls|
|McFly||Navigate through your bash shell history|
|mdless||Formatted and highlighted view of Markdown files|
|Nushell||Flexible cross-platform shell with a modern feel|
|OCRmyPDF||Add OCR text layer to scanned PDFs|
|Oh My Zsh||Framework to manage your Zsh configuration|
|Paperwork||Designed to simplify the management of your paperwork|
|PDF Mix Tool||Perform common editing operations on PDF files|
|peco||Simple interactive filtering tool that's remarkably useful|
|ripgrep||Recursively search directories for a regex pattern|
|Rnote||Sketch and take handwritten notes|
|scrcpy||Display and control Android devices|
|Sticky||Simulates the traditional “sticky note” style stationery on your desktop|
|tldr||Simplified and community-driven man pages|
|tmux||A terminal multiplexer that offers a massive boost to your workflow|
|Tusk||An unofficial Evernote client with bags of potential|
|Ulauncher||Sublime application launcher|
|Watson||Track the time spent on projects|
|Whoogle Search||Self-hosted and privacy-focused metasearch engine|
|Zellij||Terminal workspace with batteries included|