~yerinalexey/box

Command line encryption utility
Fix getopt::printusage parameters
README: Fix Hare installation link
Use for-each where possible

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~yerinalexey/box
read/write
git@git.sr.ht:~yerinalexey/box

You can also use your local clone with git send-email.

#box

Encryption utility for the command line.

#Compiling

At build time, a recent Hare toolchain is required.

This will build and install box into /usr/local:

$ make
# make install

#Usage

Using a shared key:

Generate a shared key:
$ box genkey nsa.key

Encrypt a message with the key:
$ box encrypt -k nsa.key secret.txt > encrypted.box

Decrypt the message:
$ box decrypt -k nsa.key encrypted.box > decrypted.txt

Verify that decrypted and original files match:
$ cmp secret.txt decrypted.txt && echo 'Success'

To use a passphrase instead, just omit the key argument:

$ box encrypt secret.txt > encrypted.box
Enter passphrase: ****

$ box decrypt encrypted.box > decrypted.txt
Enter passphrase: ****

$ cmp secret.txt decrypted.txt && echo 'Success'