@warren-bank/fcrypt-cli
v2.1.1
Published
Command-line utility to store an input directory to an encrypted .zip file, and decrypt and extract an input encrypted .zip file to a directory.
Downloads
2
Readme
fcrypt
Command-line utility to:
- store an input directory to an encrypted .zip file
- decrypt and extract an input encrypted .zip file to a directory
Installation:
npm install --global @warren-bank/fcrypt-cli
Usage:
fcrypt <options>
options:
========
"-h"
"--help"
Print a help message describing all command-line options
"-v"
"--version"
Print the version number
"-q"
"--quiet"
Do not print error messages
"-e"
"--encrypt"
Mode of operation: encrypt input directory to output .zip file
"-d"
"--decrypt"
Mode of operation: decrypt input .zip file to output .zip file
"-x"
"--extract"
Mode of operation: decrypt input .zip file and extract to output directory
"-a" <algorithm>
"--algorithm" <algorithm>
Cryptographic algorithm
Default: 'aes-256-cbc'
Options: `openssl list -cipher-algorithms`
"-p" <password>
"--password" <password>
Password used to derive the cryptographic cipher key
"-i" <filepath>
"--input" <filepath>
Encrypt mode: /path/to/input/directory
Decrypt mode: /path/to/input/file.zip.encrypted
Extract mode: /path/to/input/file.zip.encrypted
Note: input path must exist
"-o" <filepath>
"--output" <filepath>
Encrypt mode: /path/to/output/file.zip.encrypted
Decrypt mode: /path/to/output/file.zip
Extract mode: /path/to/output/directory
Note: output directory must exist, unless "-c" option is active
"-c"
"--create"
Create output directory if it does not exist
Tests:
Legal:
- copyright: Warren Bank
- license: GPL-2.0