1.0.3 • Published 6 years ago
cryptolock v1.0.3
cryptolock
A simple library for an encryption and decryption files
Cryptlock uses native built-in Crypto module and 'AES-256-CBC' algorithm.
Quick start
Installation
npm install --save cryptolock
Usage
// import
const crlock = new Cryptolock();
// encryption
crlock.encrypt('file.jpg', 'encrypted.dat', 'password');
// decryption
crlock.decrypt('encrypted.dat', 'decrypted.jpg', 'password');