Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes
Create cryptographic hashes for text input. Useful for password hashing, data integrity verification, checksums, and digital signatures.
Text-Only for Security
This tool only processes text input to ensure security and prevent malicious file uploads. Perfect for hashing passwords, API keys, and other text-based data.
MD5 (Message Digest 5)
128-bit hash function. Fast but cryptographically broken. Still used for checksums and non-security purposes.
SHA-1 (Secure Hash Algorithm 1)
160-bit hash function. Deprecated for security use due to vulnerabilities but still used in some legacy systems.
SHA-256
256-bit hash from SHA-2 family. Widely used in Bitcoin, SSL certificates, and modern security applications.
SHA-384 & SHA-512
Stronger variants of SHA-2 with 384-bit and 512-bit output. Used in high-security applications.
- 🔒Password Storage: Hash passwords before storing in databases (use SHA-256+ with salt)
- ✅File Integrity: Verify downloaded files haven't been corrupted or tampered with
- 🔑Digital Signatures: Create unique fingerprints for documents and data
- ⚡Caching: Generate cache keys and ETags for web applications
JavaScript (Web Crypto API)
// Generate SHA-256 hash
async function generateHash(text) {
const encoder = new TextEncoder();
const data = encoder.encode(text);
const hashBuffer = await crypto.subtle.digest('SHA-256', data);
const hashArray = Array.from(new Uint8Array(hashBuffer));
return hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
}
// Usage
const hash = await generateHash('Hello World');
console.log(hash); // a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e
Command Line (Linux/macOS)
# Generate hashes for a file
md5sum filename.txt
sha1sum filename.txt
sha256sum filename.txt
sha512sum filename.txt
# Generate hash for text
echo -n "Hello World" | sha256sum