NAME
enc
—
encrypt and decrypt files
SYNOPSIS
enc |
[-acdef ] [file ...] |
DESCRIPTION
enc
encrypts and decrypts files using
ChaCha20 via openssl(1).
When encrypting files, the .enc extension is added.
When decrypting files, the .enc extension is
removed, if possible. Otherwise output is written to standard output. Input
files are not removed. If no files are provided, standard input is encrypted
or decrypted.
The arguments are as follows:
-a
- Encrypted data is Base64-encoded.
-c
- Always write to standard output.
-d
- Decrypt.
-e
- Encrypt. This is the default.
-f
- Do not ask to confirm overwriting files.
EXAMPLES
$ enc secret.txt $ rm secret.txt $ enc -d secret.txt.enc