Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Added missing digest argument to support new node versions #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/endecrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Decrypt.prototype._transform = function(chunk, encoding, done) {
if (this.cipher === null) { // Set up
// FIXME: node's crypto module uses HMAC-SHA1 so deriving a 256 bit key and 128 bit iv is suboptimal. However,
// a plain JavaScript implementation would be much slower and a C module would need a compile step. Any ideas?
crypto.pbkdf2(this.passphrase, this.salt, this.options.rounds, 48, function(err, keyiv) {
crypto.pbkdf2(this.passphrase, this.salt, this.options.rounds, 48, "sha1", function(err, keyiv) {
if (err) {
this.emit("error", err);
return;
Expand Down