Create and store a 512-byte random encryption key named secret
:
$ mkkey secret
Encrypt the contents of file
with the secret
key and write it to file.enc
:
$ encrypt secret < file > file.enc
Decrypt the contents of file.enc
to standard output:
$ decrypt < file.enc
Keys are stored in ~/.keys
by default. Set the KEY_DIR
environment variable to specify a different location.