dblang/src/tools.ts
jusax23 5222fa22af
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
hash to long keys
2023-03-19 12:01:38 +01:00

3 lines
No EOL
127 B
TypeScript

import crypto from "crypto";
export const sha256 = (d: any) => crypto.createHash('sha256').update(String(d)).digest('base64');