Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text
-
-
-
-
What is a Hash Function?
A hash function is a mathematical algorithm that takes an input (or message) and produces a fixed-size string of characters, typically a hexadecimal number. Hash functions are one-way — you cannot reverse the output to recover the original input. Even a tiny change in the input produces a completely different hash, making them ideal for verifying data integrity.
Common Hash Algorithms
- MD5 (128-bit) — One of the oldest hash algorithms. While fast, MD5 is considered cryptographically broken and is unsuitable for security purposes. It is still used for non-security checksums like file integrity verification against accidental corruption.
- SHA-1 (160-bit) — Designed by the NSA, SHA-1 was widely used but has been deprecated since 2010 due to theoretical collision attacks. Avoid using it for security-sensitive applications.
- SHA-256 (256-bit) — Part of the SHA-2 family, SHA-256 is currently the industry standard for security applications. It is used in SSL/TLS certificates, blockchain technology, and password hashing.
- SHA-512 (512-bit) — A stronger variant of SHA-2 offering 512-bit output. It provides greater collision resistance at the cost of slower computation and larger output size.
Practical Applications of Hashing
- Password storage — Systems store hashed versions of passwords, never the plain text. When you log in, the system hashes your input and compares it to the stored hash.
- File integrity verification — Download sites provide hash values so you can verify that downloaded files have not been corrupted or tampered with during transmission.
- Digital signatures — Hashing is a core component of digital signatures, ensuring that documents have not been altered after signing.
- Data deduplication — Storage systems use hashes to identify duplicate content, storing only one copy of identical data blocks.
- Git version control — Git uses SHA-1 hashes to identify commits and objects, ensuring the integrity of the entire repository history.