From 3224341a39287092b464bf3a439611dd87b03468 Mon Sep 17 00:00:00 2001 From: Aditya Mankal <137275420+AdityaMankal-MS@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:44:34 +0530 Subject: [PATCH] Improved Hash (#20728) Co-authored-by: Tarun Ramsinghani <2929463+tarunramsinghani@users.noreply.github.com> --- make-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-util.js b/make-util.js index 8395f1040e3b..bb91e0a6e03c 100644 --- a/make-util.js +++ b/make-util.js @@ -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';