crkey

A simple crypto tool for nodeJs.


Keywords
openssl
License
MIT
Install
npm install crkey@1.1.2

Documentation

Crkey

A simple crypto tool for nodeJs. Need OpenSSL-Crypto support.

Install

npm install crkey -g

Usage

const crkey = require('crkey');

// To crypto a file.
crkey.crypto(targetFile, 
                password, 
                cryptoMode, 
                callBack(res));

// To decrypto a file.
crkey.decrypto(targetFile, 
                password, 
                cryptoMode, 
                ifToFile ,
                callBack(res));