dblang/src/tools.ts

3 lines
127 B
TypeScript
Raw Permalink Normal View History

2023-03-19 12:01:38 +01:00
import crypto from "crypto";
export const sha256 = (d: any) => crypto.createHash('sha256').update(String(d)).digest('base64');