refactor(sandbox): centralize sha256 helpers

This commit is contained in:
Peter Steinberger
2026-02-16 04:33:35 +01:00
parent 3c467baa2d
commit d1fca442b4
3 changed files with 9 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
import crypto from "node:crypto";
export function hashTextSha256(value: string): string {
return crypto.createHash("sha256").update(value).digest("hex");
}