mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-08-29 04:32:06 -04:00
fix(server): replace MD5 with SHA-256 in FsHashStore
SonarCloud S4790: weak hash algorithm. SHA-256 is content fingerprint only (not security) but S4790 flags any MD5 use.
This commit is contained in:
parent
9a251631b5
commit
b74e4ea7f0
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ export class FsObjectBackend extends ObjectBackend {
|
|||
if (obj === undefined) return;
|
||||
|
||||
// hash object
|
||||
const hash = createHash("md5");
|
||||
const hash = createHash("sha256");
|
||||
hash.setEncoding("hex");
|
||||
|
||||
// local variable to point to object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue