Skip to content

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.

License

Notifications You must be signed in to change notification settings

warren-bank/node-fcrypt-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. encrypt
  2. decrypt
  3. extract

Legal:

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published