Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cryptostream: in EncryptStream use createCipher

Typo from Stream refactor broke ciphering. With this change the
node-cryptostream works properly as a Stream.
  • Loading branch information...
commit 90561bffe7abb5a8cd45a701d810a8c76a293dc4 1 parent c0c7a5f
@philips authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cryptostream.js
View
2  lib/cryptostream.js
@@ -29,7 +29,7 @@ function coearseOpts (opts) {
}
var EncryptStream = function(opts) {
opts = coearseOpts(opts)
- EncryptStream.super_.call(this, opts, crypto.createDecipher(opts.algorithm, opts.key));
+ EncryptStream.super_.call(this, opts, crypto.createCipher(opts.algorithm, opts.key));
}
util.inherits(EncryptStream, CryptoStream);
Please sign in to comment.
Something went wrong with that request. Please try again.