hash.ts 182 B

1234567
  1. import { createHash } from "crypto"
  2. export namespace Hash {
  3. export function fast(input: string | Buffer): string {
  4. return createHash("sha1").update(input).digest("hex")
  5. }
  6. }