Skip to content

Commit

Permalink
Fix for "Can not decrypt"
Browse files Browse the repository at this point in the history
Fix for "Can not decrypt" issue XervoIO#9 , padding issue on decrypt fix is in line 62.
  • Loading branch information
scottie authored Jun 21, 2018
1 parent a84d62e commit d3536f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/file-encryptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Encryptor.decryptFile = function(inputPath, outputPath, key, options, callback)
});

inputStream.on('end', function() {
cipher.setAutoPadding(false);
try {
var buf = new Buffer(cipher.final('binary'), 'binary');
outputStream.write(buf);
Expand Down

0 comments on commit d3536f5

Please sign in to comment.