cifra

0.0.3 • Public • Published

Cifra

Build Status Coverage Status

cli-tool to Encrypt and Decrypt files

Install:

npm install -g cifra

Use in cli:

➜  ~ cifra -h
 
  Usage: cifra [options] [command]
 
  Encrypt and decrypt files with node
 
 
  Options:
 
    -V, --version  output the version number
    -h, --help     output usage information
 
 
  Commands:
 
    Encrypt|<file> <password> [algorithm]   Encript file
    Decrypt|<file> <password> [algorithm]  Decrypt file
 
  • #### [algorithm] --> aes192 it is default algorithm. On recent OpenSSL releases, openssl list-cipher-algorithms will display the available cipher algorithms.

Use in your projects:

const encrypt = require('cifra').Encrypt;
const decrypt = require('cifra').Decrypt;
 
 
// Use with await
async function encryptAndDecryptExample() {
    await encrypt.file('./arg.js', 'mafasd');
    await decrypt.file('./arg.js.enc','mafasd');
}
 
encryptAndDecryptExample();
 
 
// Return promise
encrypt.file('./arg.js', 'mafasd')
    .then(() => {
        decrypt.file('./arg.js.enc','mafasd');
    });

Package Sidebar

Install

npm i cifra

Weekly Downloads

24

Version

0.0.3

License

MIT

Unpacked Size

6.56 kB

Total Files

10

Last publish

Collaborators

  • luisangonzalez