npm.io
1.0.7 • Published 8 years agoCLI

file-encryptor-cli

Licence
SEE LICENSE IN LICENSE
Version
1.0.7
Deps
2
Vulns
0
Weekly
0

File encryptor cli tool

a simple cli tool for encrypt and decrypt files

Installation

npm i -g file-encryptor-cli

Commands

file-encryptor encrypt <file> <password>

example:
file-encryptor encrypt ./config.js password -> output ./config.js.enc

params:

  • file - path to file which will be encrypted (required)
  • password - any secret password ;) (required)
file-encryptor decrypt [options] <file> <password> [dest]

example:
file-encryptor decrypt -f ./config.js.enc password -> output ./config.js
file-encryptor decrypt ./config.js.enc password ./config/decrypted.config.js -> output ./config/decrypted.config.js

options:

  • -f --force - force replace destination file (optional)

params:

  • file - path to file which will be decrypted (required)
  • password - any secret password ;) (required)
  • dest - destination file (optional)

note: use node version >= 8 (i have't test it at older versions) note: v1.0.7 - please update to this stable version (all bugs fixed)

Keywords