Skip to content

Commit

Permalink
Support environments where MD5 is prohibited (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
szubster authored Feb 29, 2024
1 parent 8250adf commit 9140468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function trimSlashes (str) {
}

function cachedPrebuild (url) {
const digest = crypto.createHash('md5').update(url).digest('hex').slice(0, 6)
const digest = crypto.createHash('sha512').update(url).digest('hex').slice(0, 6)
return path.join(prebuildCache(), digest + '-' + path.basename(url).replace(/[^a-zA-Z0-9.]+/g, '-'))
}

Expand Down

0 comments on commit 9140468

Please sign in to comment.