diff options
| author | Pitu <[email protected]> | 2020-05-09 23:56:35 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-05-09 23:56:35 +0900 |
| commit | a639b85734e4ab3f504214c61807d4ac7b0882c7 (patch) | |
| tree | b4f1e52125f500ad648e48bfbb869eae111bc0b7 /src/api/utils/Util.js | |
| parent | Feature: (diff) | |
| download | host.fuwn.me-a639b85734e4ab3f504214c61807d4ac7b0882c7.tar.xz host.fuwn.me-a639b85734e4ab3f504214c61807d4ac7b0882c7.zip | |
Fix: consistent hash of uploads
Diffstat (limited to 'src/api/utils/Util.js')
| -rw-r--r-- | src/api/utils/Util.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |