enk 0.3.2

Simple data en/decryption
enk-0.3.2 is not a library.

version build dependencies docs license downloads

enk 0.3.2

Simple data en/decryption

Usage

enk 0.3.2 - Simple data en/decryption
Usage: enk [OPTIONS] [FILE]
Arguments:
  [FILE]  Input file (omit to read from stdin)

Options:
  -d, --decrypt              Decrypt [default: encrypt]
  -k, --keyfile <KEYFILE>    Use a file as encryption/decryption key
  -p, --password <PASSWORD>  Password as argument (instead of prompting)
  -r, --remove               Remove input file
  -h, --help                 Print help
  -V, --version              Print version

Install

Download static single-binary

wget https://github.com/pepa65/enk/releases/download/0.3.2/enk
sudo mv enk /usr/local/bin
sudo chown root:root /usr/local/bin/enk
sudo chmod +x /usr/local/bin/enk

Using cargo (rust toolchain)

If not installed yet, install a Rust toolchain, see https://www.rust-lang.org/tools/install

Cargo from crates.io

cargo install enk

Cargo from git

cargo install --git https://github.com/pepa65/enk

Cargo static build (avoid GLIBC incompatibilities)

rustup target add x86_64-unknown-linux-musl
git clone https://github.com/pepa65/enk
cd enk
cargo rel

Install with cargo-binstall

Even without a full Rust toolchain, rust binaries can be installed with the static binary cargo-binstall:

# Install cargo-binstall for Linux x86_64
# (Other versions are available at https://crates.io/crates/cargo-binstall)
wget github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
tar xf cargo-binstall-x86_64-unknown-linux-musl.tgz
sudo chown root:root cargo-binstall
sudo mv cargo-binstall /usr/local/bin/

Only a linux-x86_64 (musl) binary available: cargo-binstall enk

Then enk will be installed in ~/.cargo/bin/ which will need to be added to PATH!