Giter Site home page Giter Site logo

quark-crypto's Introduction

quark-crypto

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

Command Alias Description
encrypt e Encrypt all files in the current directory
decrypt d Decrypt all files in the current directory

Options

Flag Alias Type Description Default
--algorithm -a string Algorithm used to create the cipher aes-256-cbc
--digest -d string HMAC digest algorithm used to derive the key sha256
--extension -e string Extension appended to the encrypted/decrypted files encrypted
--folder -f string Folder used to encrypt/decrypt files ./
--password -p string Password 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

quark-crypto's People

Contributors

fabienmotte avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.