Skip to main content

Fernet Encryption CLI tool

Project description

Fernet Encryption CLI tool

Install

Use pipx to install globally in an isolated python environment.

pipx install fernet-encrypt

Usage

Usage: fernet-encrypt [OPTIONS] COMMAND [ARGS]...

Options:
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

Commands:
  create-fernet-key
  decrypt-file
  encrypt-file

create-fernet-key

Create a new fernet key to sign with. Keys will be stored in fernet-encrypt install location. When decrypting, all available keys will be tried until one succeeds or they are all exhasted.

Usage: fernet-encrypt create-fernet-key [OPTIONS]

Options:
  --help  Show this message and exit.

encrypt-file

Encrypt provided INPUT_FILE with the newest fernet key (see create-fernet-key). The encrypted output will be directed to OUTPUT_FILE if provided. Otherwise output will be directed to stdout.

Usage: fernet-encrypt encrypt-file [OPTIONS] INPUT_FILE
                                   [OUTPUT_FILE]

Arguments:
  INPUT_FILE     [required]
  [OUTPUT_FILE]

Options:
  --help  Show this message and exit.

decrypt-file

Decrypt provided INPUT_FILE. All existing fernet keys will be used for decryption until one succeeds or they are all exhasted. The decrypted output will be directed to OUTPUT_FILE if provided. Otherwise output will be directed to stdout.

fernet-encrypt decrypt-file [OPTIONS] INPUT_FILE
                            [OUTPUT_FILE]

Arguments:
  INPUT_FILE     [required]
  [OUTPUT_FILE]

Options:
  --help  Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fernet_encrypt-1.0.3.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file fernet_encrypt-1.0.3.tar.gz.

File metadata

  • Download URL: fernet_encrypt-1.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for fernet_encrypt-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9a6cb99729f3b10fd3039fdacd6154bbb571d70bdff929690ebc7368bb483deb
MD5 0d9b989274ff284fd8274f65a98a2db3
BLAKE2b-256 516e037c96618dec27de45a62e80bf808711da8ee8165ab9e281fa25a3f2195d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page