vorsV
Convex Community3y ago
2 replies
vors

What s the recommende way to get

What's the recommende way to get sha256 of a string nowdays?
I'm trying
"use node";

import crypto from "crypto";

export function sha256(input: string): string {
  const hash = crypto.createHash("sha256").update(input).digest("hex");
  return hash;
}

but I cannot make the this work for some reason...
Was this page helpful?