1.0.1 • Published 7 years ago

quark-crypto v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

build status stability npm version js-standard-style semantic-release

Simple CLI tool to encrypt/decrypt multiple files.

Installation

NPM

npm install -g quark-crypto

It will install quark-crypto package globally, so that you can use qcrypto binary everywhere.

Usage

By default, it will encrypt/decrypt all files in the current directory using aes-256-cbc algorithm and 'sha256' digest. It will append .encrypted extension to encrypted files and remove it after decryption.

$ qcrypto <(e)ncrypt|(d)ecrypt> [options]

Commands

CommandAliasDescription
encrypteEncrypt all files in the current directory
decryptdDecrypt all files in the current directory

Options

FlagAliasTypeDescriptionDefault
--algorithm-astringAlgorithm used to create the cipheraes-256-cbc
--digest-dstringHMAC digest algorithm used to derive the keysha256
--extension-estringExtension appended to the encrypted/decrypted filesencrypted
--folder-fstringFolder used to encrypt/decrypt files./
--password-pstringPassword used to derive the encryption key. Do not use this option, it will prompt you to enter the password (see examples below).null

Examples

Encrypt

$ qcrypto encrypt

? Enter the password *****
File 'example' encrypted

Decrypt

$ qcrypto decrypt

? Enter the password *****
File 'example.encrypted' decrypted

Algorithm

$ qcrypto encrypt --algorithm cast

? Enter the password *****
File 'example' encrypted

Digest

$ qcrypto encrypt --digest sha512

? Enter the password *****
File 'example' encrypted

Extension

$ qcrypto decrypt --extension custom

? Enter the password *****
File 'example.custom' decrypted

Path

$ qcrypto encrypt --path ./my/custom/path

? Enter the password *****
File 'my/custom/path/example' encrypted

Build

To build the sources with babel in ./lib directory :

npm run build

License

MIT License © Patrick Heng Fabien Motte