From d42e6a4fdecbb64141f33716b2dc2c94d251818a Mon Sep 17 00:00:00 2001 From: Ujas Sidapara Date: Tue, 15 Apr 2025 16:55:47 +0100 Subject: [PATCH] changed algo to sha256 --- src/screenshot/screenshot-compare.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screenshot/screenshot-compare.ts b/src/screenshot/screenshot-compare.ts index a1096ab4230..73ace311a8a 100644 --- a/src/screenshot/screenshot-compare.ts +++ b/src/screenshot/screenshot-compare.ts @@ -22,7 +22,7 @@ export async function compareScreenshot( testPath: string, pixelmatchThreshold: number, ) { - const currentImageHash = createHash('md5').update(currentScreenshotBuf).digest('hex'); + const currentImageHash = createHash('sha256').update(currentScreenshotBuf).digest('hex'); const currentImageName = `${currentImageHash}.png`; const currentImagePath = join(screenshotBuildData.imagesDir, currentImageName); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy