mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-17 12:56:41 +02:00
8 lines
182 B
TypeScript
8 lines
182 B
TypeScript
import { createHash } from "crypto"
|
|
|
|
export namespace Hash {
|
|
export function fast(input: string | Buffer): string {
|
|
return createHash("sha1").update(input).digest("hex")
|
|
}
|
|
}
|