Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

368 B
Raw Blame
import { createHash } from 'node:crypto';
import { createReadStream } from 'node:fs';

export async function sha256CreatorFile(path: string, signal?: AbortSignal): Promise<string> {
  signal?.throwIfAborted();
  const digest = createHash('sha256');
  for await (const chunk of createReadStream(path, { signal })) digest.update(chunk);
  return digest.digest('hex');
}