6 lines
159 B
TypeScript
6 lines
159 B
TypeScript
import crypto from "node:crypto";
|
|
|
|
export function hashTextSha256(value: string): string {
|
|
return crypto.createHash("sha256").update(value).digest("hex");
|
|
}
|