Files
plan2code/plan2code-loop/src/state/hash.ts
T
2026-01-27 12:11:00 -08:00

10 lines
260 B
TypeScript

import { createHash } from 'crypto';
export function computeHash(content: string): string {
return createHash('sha256').update(content).digest('hex').slice(0, 16);
}
export function hashesMatch(a: string, b: string): boolean {
return a === b;
}