fix: replace deprecated SHA-1 in sandbox config hash

This commit is contained in:
Peter Steinberger
2026-02-16 04:30:05 +01:00
parent aef1d55300
commit 559c8d9930
2 changed files with 11 additions and 1 deletions

View File

@@ -79,5 +79,5 @@ export function computeSandboxBrowserConfigHash(input: SandboxBrowserHashInput):
function computeHash(input: unknown): string {
const payload = normalizeForHash(input);
const raw = JSON.stringify(payload);
return crypto.createHash("sha1").update(raw).digest("hex");
return crypto.createHash("sha256").update(raw).digest("hex");
}