/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/src/util/hash.ts
11 строк
306 B
Kit Langton
feat(core): add embedded v2 session runtime and tool foundation (#30632)
04 июн 2026, 06:02
Не верифицирован
04 июн 2026, 06:02
76ee87e
Код
Авторство
О чём код?
import { createHash } from "crypto" export namespace Hash { export function fast(input: string | Buffer): string { return createHash("sha1").update(input).digest("hex") } export function sha256(input: string | Buffer): string { return createHash("sha256").update(input).digest("hex") } }