We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 408c99f + 2a395e2 commit 0874486Copy full SHA for 0874486
index.js
@@ -138,7 +138,7 @@ class ChecksumValidator {
138
let fullPath = path.resolve(baseDir, filename)
139
debug(`Reading file with "${this.encoding(binary)}" encoding`)
140
let stream = fs.createReadStream(fullPath, {encoding: this.encoding(binary)})
141
- let hasher = crypto.createHash(this.algorithm)
+ let hasher = crypto.createHash(this.algorithm, {defaultEncoding: 'binary'})
142
hasher.on('readable', () => {
143
let data = hasher.read()
144
if (data) {
0 commit comments