SHA-256 cryptographic hash function implementation for TypeScript and JavaScript
91
A command-line tool for benchmarking hash computation performance on large files with memory-efficient processing.
@generates
/**
* Benchmarks hash computation on a file.
*
* @param filePath - Path to the file to hash
* @returns Object containing hash, bytes processed, and time taken
*/
export function benchmarkHash(filePath: string): Promise<{
hash: string;
bytesProcessed: number;
timeMs: number;
}>;
/**
* Converts a byte array to hexadecimal string.
*
* @param bytes - Byte array to convert
* @returns Hexadecimal string representation
*/
export function toHex(bytes: Uint8Array): string;Provides SHA-256 cryptographic hash function with efficient streaming support.
Install with Tessl CLI
npx tessl i tessl/npm-stablelib--sha256docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10