Skip to content

Commit

Permalink
Improved Hash (#20728)
Browse files Browse the repository at this point in the history
Co-authored-by: Tarun Ramsinghani <[email protected]>
  • Loading branch information
AdityaMankal-MS and tarunramsinghani authored Dec 16, 2024
1 parent 80d79fd commit 3224341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ var downloadArchiveAsync = async function (url, omitExtensionCheck) {
var scrubbedUrl = url.replace(/[/\:?]/g, '_');

var crypto = require('crypto');
var newScrubbedUrl = crypto.createHash('md5').update(scrubbedUrl).digest('hex');
var newScrubbedUrl = crypto.createHash('sha256').update(scrubbedUrl).digest('hex');

var targetPath = path.join(downloadPath, 'archive', newScrubbedUrl);
var marker = targetPath + '.completed';
Expand Down

0 comments on commit 3224341

Please sign in to comment.