mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
6 lines
161 B
TypeScript
6 lines
161 B
TypeScript
import { type BinaryLike, createHash } from 'crypto';
|
|
|
|
export function sha256sum(data: BinaryLike) {
|
|
return createHash('sha256').update(data).digest('hex');
|
|
}
|