UNPKG

@whook/whook

Version:

Build strong and efficient REST web services.

8 lines (6 loc) 218 B
import { createHash as _createHash } from 'node:crypto'; export function createHash(data: Buffer, len: number): string { return _createHash('shake256', { outputLength: len }) .update(data) .digest('hex'); }