~yerinalexey/box

Command line encryption utility
Fix up Makefile
Add error assertion to io::close calls
README: small tweaks

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 yyp.key

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

Decrypt the message:
$ box decrypt -k yyp.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'