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:
John Smith 2026-07-25 15:52:39 -04:00
parent 9a251631b5
commit b74e4ea7f0

View file

@ -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