Fix getopt::printusage parameters
README: Fix Hare installation link
Use for-each where possible
Encryption utility for the command line.
At build time, a recent Hare toolchain is required.
This will build and install box into /usr/local
:
$ make
# make install
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'