Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
node.js stream wrapper for crypto
JavaScript
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
README.md README.md: use pipe in example
index.js
package.json
test.js test: add a test program

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

Something went wrong with that request. Please try again.