2025-05-19 15:34:05 -07:00

8 lines
172 B
TypeScript

import { sha256 } from '@noble/hashes/sha256';
import { bytesToHex } from '@noble/hashes/utils';
export function hash(data: string) {
return bytesToHex(sha256(data));
}