File size: 162 Bytes
a86efc3
 
 
 
 
1
2
3
4
5
import { createHash } from "node:crypto";

export function sha256(input: string | Buffer): string {
    return createHash("sha256").update(input).digest("hex");
}