node.js stream wrapper for crypto
JavaScript
Switch branches/tags
Nothing to show
Latest commit 90561bf May 29, 2012 @philips cryptostream: in EncryptStream use createCipher
Typo from Stream refactor broke ciphering. With this change the
node-cryptostream works properly as a Stream.
Permalink
Failed to load latest commit information.
lib
LICENSE
README.md
index.js
package.json
test.js

README.md

Stream object for crypto.

Example Usage:

var DecryptStream = require('./lib/cryptostream.js').DecryptStream;
var EncryptStream = require('./lib/cryptostream.js').EncryptStream;

var key = 'nodecryptostream';

var e = new EncryptStream(key);
var d = new DecryptStream(key);

fs.createReadStream(__filename).pipe(e).pipe(d).pipe(process.stdout, {end: false})

EncryptStream/DecryptStream (opts)

opts may be a the key (string) or a object. If opts is an object it must have properties for key and algorithm, and may have properties inputEncoding and outputEncoding

also see crypto.createCypher