Skip to content


Subversion checkout URL

You can clone with
Download ZIP
node.js stream wrapper for crypto
branch: master

cryptostream: in EncryptStream use createCipher

Typo from Stream refactor broke ciphering. With this change the
node-cryptostream works properly as a Stream.
latest commit 90561bffe7
@philips authored
Failed to load latest commit information.
lib cryptostream: in EncryptStream use createCipher
LICENSE Initial commit use pipe in example
test.js test: add a test program

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

Something went wrong with that request. Please try again.