Files
feishin/packages/preload/src/node-crypto.ts
T
2022-12-09 03:09:55 -08:00

6 lines
161 B
TypeScript

import { type BinaryLike, createHash } from 'crypto';
export function sha256sum(data: BinaryLike) {
return createHash('sha256').update(data).digest('hex');
}