From a639b85734e4ab3f504214c61807d4ac7b0882c7 Mon Sep 17 00:00:00 2001 From: Pitu Date: Sat, 9 May 2020 23:56:35 +0900 Subject: Fix: consistent hash of uploads --- src/api/utils/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/utils') diff --git a/src/api/utils/Util.js b/src/api/utils/Util.js index 7ee32b6..b8d960d 100644 --- a/src/api/utils/Util.js +++ b/src/api/utils/Util.js @@ -142,7 +142,7 @@ class Util { } static generateFileHash(data) { - const hash = crypto.createHash('sha1').update(data).digest('hex'); + const hash = crypto.createHash('md5').update(data).digest('hex'); return hash; } -- cgit v1.2.3