Simple data en/decryption
encp - Simple data en/decryption
Encrypt (default) or decrypt stdin or file to stdout with keyfile or password.
Usage: encp [-d|--decrypt] [<file>] [<options>]
Options: [-q|--quiet] [-r|--random | -k|--keyfile] | -h|--help
-r|--random: Encrypt with random password (and display it)
-k|--keyfile <keyfile>: Use (part of) <keyfile> as the password
-q|--quiet: Suppress output on stderr (errors and prompts)
-h|--help: Show this help text (ignore all other options)
A password must be entered if -r|--random and -k|--keyfile are not given.
encp secret.file >secret.file.encp
encp secret.file --random >secret.file.encp # Will display the used password
encp --decrypt secret.file.encp --keyfile file.key >secret.file
encp -d secret.file.encp |less
nc -l 6666 |encp --decrypt >destination.file
encp source.file |nc host.ip 6666
zstd --stdout "$file" |encp >"$file.zst.encp"
zstd --stdout "$file" |encp --keyfile file.key >"$file.zst.encp"
Download the precompiled single binary for amd64
and make it executable with chmod +x encp
.
Or clone the repository by git clone https://gitlab.com/pepa65/encp
, do cd encp
and do:
make
sudo make install
None, libhydrogen is included as a submodule.
It is updated by: git pull -v --recurse-submodules