node-cryptostream

0.0.1 • Public • Published

node-cryptostream

Duplex stream implementation of Crypto.

Installation

$ npm install node-cryptostream

Usage

var cryptostream = require('node-cryptostream'),
    EncryptStream = new cryptostream.EncryptStream({ algorithm: 'aes-256-cbc', key: 'key123' }),
    DecryptStream = new cryptostream.DecryptStream({ algorithm: 'aes-256-cbc', key: 'key123' });

var textStream = fs.createReadStream('file.txt');
    
textStream.pipe(EncryptStream).pipe(DecryptStream);

Readme

Keywords

none

Package Sidebar

Install

npm i node-cryptostream

Weekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • olivier