npm.io
0.0.1 • Published 13 years ago

node-cryptostream

Licence
—
Version
0.0.1
Deps
0
Vulns
0
Weekly
0
Stars
3

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);

Keywords