Skip to content

Commit 3224341

Browse files
Improved Hash (#20728)
Co-authored-by: Tarun Ramsinghani <[email protected]>
1 parent 80d79fd commit 3224341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make-util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ var downloadArchiveAsync = async function (url, omitExtensionCheck) {
463463
var scrubbedUrl = url.replace(/[/\:?]/g, '_');
464464

465465
var crypto = require('crypto');
466-
var newScrubbedUrl = crypto.createHash('md5').update(scrubbedUrl).digest('hex');
466+
var newScrubbedUrl = crypto.createHash('sha256').update(scrubbedUrl).digest('hex');
467467

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

0 commit comments

Comments
 (0)