diff --git a/lib/file-encryptor.js b/lib/file-encryptor.js index 33deefe..df6906c 100644 --- a/lib/file-encryptor.js +++ b/lib/file-encryptor.js @@ -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);