Security & Integrity
Hash Generator
Calculate SHA-256, SHA-512, SHA-1, SHA-384, and MD5 hashes for files or text. 100% client-side Web Crypto processing with instant checksum verification.
100% Client-Side — Files stay on your device
Drop your file here, or click to browse
Computes SHA-256, SHA-512, SHA-1, SHA-384 locally using GPU/CPU acceleration
Format:
SHA-256
Select a file or type text above
SHA-512
Select a file or type text above
SHA-1
Select a file or type text above
SHA-384
Select a file or type text above
MD5
Select a file or type text above
Developer Reference
Core Algorithm & Standalone Script
Standalone JavaScript implementation for computing SHA-256, SHA-512, SHA-1, SHA-384, and MD5 hashes using Web Crypto API.
// Standalone Web Crypto File & Text Hasher (Vanilla JS)
async function generateHashes(inputData) {
let buffer;
if (typeof inputData === 'string') {
buffer = new TextEncoder().encode(inputData).buffer;
} else if (inputData instanceof ArrayBuffer) {
buffer = inputData;
} else {
throw new Error('Expected string or ArrayBuffer input');
}
const hex = buf => Array.from(new Uint8Array(buf)).map(b => b.toString(16).padStart(2, '0')).join('');
const sha256 = hex(await crypto.subtle.digest('SHA-256', buffer));
const sha512 = hex(await crypto.subtle.digest('SHA-512', buffer));
const sha1 = hex(await crypto.subtle.digest('SHA-1', buffer));
const sha384 = hex(await crypto.subtle.digest('SHA-384', buffer));
return { sha256, sha512, sha1, sha384 };
}