GO KALI FREE

Cryptography

Hash Generator

Generate MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3, CRC32, NTLM, LM, BCrypt, RIPEMD-160, Blake2, Whirlpool, HMAC hashes, SRI tags, WordPress/Laravel password hashes, and secure random hashes. Free online hash generator with 20+ algorithms.

What Is a Hash Generator?

A hash generator is a tool that takes input data — text, files, or binary — and produces a fixed-length fingerprint called a hash using a cryptographic hash function. This online hash generator supports over 20 algorithms including MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-224/256/384/512, CRC32, NTLM, LM Hash, BCrypt, RIPEMD-160, Blake2b, Blake2s, and Whirlpool. All hashing runs locally in your browser, so your data never leaves your device.

Hashing is a one-way function: you can compute a hash from input, but you cannot reverse a hash back to its input. This makes hashing fundamental to password storage, file integrity verification, digital signatures, and malware identification. Whether you need an MD5 hash generator for legacy checksums, a SHA-256 hash generator for file verification, or a BCrypt hash generator for password security, this tool covers every use case.

Unlike encryption, which is reversible with a key, hashing is intentionally irreversible. Two different inputs should produce completely different hashes (the avalanche effect), and the same input should always produce the same hash. This determinism is what makes hashes useful for verification: if the hash matches, the data is intact.

How Hashing Works

A hash function processes input data in fixed-size blocks, applying mathematical operations that mix and scramble the bits to produce a fixed-length output. The SHA-256 algorithm, for example, processes data in 512-bit blocks and produces a 256-bit (32-byte, 64-hex-character) output. MD5 produces 128 bits, SHA-512 produces 512 bits, and SHA3-256 produces 256 bits.

The key properties of a cryptographic hash function are: determinism (same input always produces same output), quick computation (fast to hash but slow to reverse), avalanche effect (small input change causes large output change), collision resistance (hard to find two inputs with the same hash), and preimage resistance (hard to find an input that produces a given hash).

This hash generator uses the browser's native Web Crypto API for SHA-1, SHA-256, SHA-384, and SHA-512, which provides hardware-accelerated performance. MD5 and SHA3 are implemented in pure JavaScript. BCrypt uses bcryptjs, and advanced algorithms like Blake2, RIPEMD-160, and Whirlpool use hash-wasm for WebAssembly-accelerated performance.

Hashing vs Encryption vs Encoding

Hashing, encryption, and encoding are often confused but serve fundamentally different purposes. Hashing is one-way and irreversible — you cannot recover the original data from a hash. Encryption is two-way and reversible with a decryption key — you can recover the original data. Encoding is also reversible but provides no security — it simply changes data representation (like Base64 or URL encoding).

Use hashing when you need to verify integrity or store passwords without revealing them. Use encryption when you need to protect data but recover it later. Use encoding when you need to transport data in a different format but security is not a concern. This tool includes a Base64 encoder/decoder tab to help you see the difference: Base64 is encoding (reversible), while SHA-256 is hashing (irreversible).

A common mistake is using encoding (like Base64) as if it were encryption. Base64-encoded data can be instantly decoded by anyone — it provides zero security. Similarly, MD5 should not be confused with a secure hash: while it produces a hash, it is cryptographically broken and should only be used for non-security checksums.

SHA Family Explained

The SHA (Secure Hash Algorithm) family includes three generations: SHA-1, SHA-2, and SHA-3. SHA-1 produces a 160-bit hash but is deprecated due to known collision attacks. SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512) is the current standard, widely used in TLS, SSL certificates, and blockchain. SHA-3 (SHA3-224, SHA3-256, SHA3-384, SHA3-512) uses the Keccak sponge construction and is the newest standard, designed as a future-proof alternative to SHA-2.

SHA-256 is the most commonly used hash algorithm today. It powers Bitcoin's proof-of-work, TLS certificate signatures, and software package verification. SHA-512 offers higher security margin with a 512-bit output. SHA3-256 and SHA3-512 use a completely different internal structure (sponge construction) than SHA-2, providing defense-in-depth: even if SHA-2 is broken in the future, SHA-3 would remain secure.

This hash generator supports the entire SHA family: SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA3-224, SHA3-256, SHA3-384, and SHA3-512. Each is computed in real-time as you type, and you can toggle between uppercase and lowercase hex output.

Password Hashing with BCrypt

BCrypt is a password hashing function specifically designed to be slow, making brute-force attacks expensive. Unlike fast hash functions (MD5, SHA-256), BCrypt uses a configurable cost factor that determines how many iterations are performed. A cost of 10 means 2^10 = 1,024 iterations; a cost of 12 means 4,096 iterations. This hash generator includes a BCrypt tab with an adjustable cost factor slider.

BCrypt also includes a built-in salt, which is embedded in the output hash string. The salt prevents rainbow table attacks and ensures that hashing the same password twice produces different hashes. The output format is $2a$cost$salt+hash, which can be verified later using bcrypt's compare function.

For production password storage, BCrypt is a solid choice. Other options include scrypt (memory-hard) and Argon2 (winner of the Password Hashing Competition, 2015). Never store passwords with raw SHA-256 or MD5 — these are too fast and can be brute-forced with modern GPUs at billions of hashes per second.

NTLM and LM Hash for Windows Authentication

NTLM (NT LAN Manager) and LM (LAN Manager) hashes are used in Windows authentication, particularly in Active Directory environments. The LM hash is the older format, based on DES encryption of the uppercase password, and is completely broken — it splits passwords into two 7-character halves and can be cracked almost instantly. NTLM hash is the newer format, computed as MD4 of the UTF-16LE encoded password.

This hash generator includes an NTLM/LM tab for educational purposes. Understanding how these hashes work is important for security professionals who audit Windows environments. Tools like Hashcat and John the Ripper can crack NTLM hashes, so understanding the hash format helps you assess password policy strength.

Modern Windows environments should use Kerberos authentication instead of NTLM. However, NTLM is still present for backward compatibility and is a common target in penetration testing engagements. These hashes are for educational use only — never use them to attack systems you do not own or have authorization to test.

File Verification and Digital Integrity

Hashes are the standard way to verify file integrity. When you download software, the publisher often provides a SHA-256 checksum. By computing the hash of your downloaded file and comparing it to the published checksum, you confirm the file was not corrupted or tampered with during download. This hash generator includes a file hashing tab that computes SHA-256 for any local file.

In malware analysis, file hashes (MD5, SHA-256) are used to identify samples. Threat intelligence platforms like VirusTotal use hashes as unique identifiers, and incident response teams share indicators of compromise (IOCs) as file hashes. The compare tab lets you verify whether two hashes match, which is essential for integrity checking.

Subresource Integrity (SRI) is a browser security feature that uses hashes to verify that third-party resources (scripts, stylesheets) loaded from CDNs have not been tampered with. This tool includes an SRI generator tab that creates properly formatted integrity attributes for use in HTML script and link tags.

HMAC, Salts, and Rainbow Tables

HMAC (Hash-based Message Authentication Code) combines a hash function with a secret key to prove both integrity and authenticity. Unlike a plain hash, an HMAC cannot be recomputed without the key, which makes it the right tool for signing API requests, verifying webhooks, and securing tokens. This generator's HMAC tab computes HMAC-SHA-256 and HMAC-SHA-512.

Rainbow tables are precomputed lookup tables that reverse hashes back to plaintexts. They are devastating against unsalted hashes. The defense is a salt: a unique random value added to each password before hashing. BCrypt includes salts automatically, but if you use SHA-256 for password storage, you must add and store a salt manually.

When auditing a system, check whether passwords are salted and whether a slow algorithm is used. If you find MD5 or unsalted SHA-1 in a password database, that is a critical finding, because those hashes can be cracked in seconds using wordlists and tools like John the Ripper.

WordPress and Laravel Password Hashing

WordPress uses the phpass portable hash format ($P$) for password storage. This format is based on MD5 with iterated stretching and a salt, providing moderate security for web applications. This generator's WordPress tab creates compatible hashes that can be stored in the wp_users.user_pass column and verified with wp_check_password().

Laravel uses BCrypt for password hashing by default, through PHP's password_hash() function. The Laravel tab in this generator produces hashes compatible with Laravel's Hash::make() and Hash::check() methods. You can adjust the BCrypt cost factor to match your application's security requirements.

Both WordPress and Laravel hashes include embedded salts, so the same password will produce different hashes each time. This is by design and is verified by extracting the salt from the stored hash during the check operation.

Best Practices and Common Mistakes

Best practice: Use SHA-256 or SHA-512 for file integrity and digital signatures. Use BCrypt (cost 12+), scrypt, or Argon2 for password storage. Use HMAC with SHA-256 for API authentication. Use SRI tags for CDN-hosted resources. Always use salts with password hashes.

Common mistakes: Using MD5 for any security purpose (it is broken). Storing passwords with raw SHA-256 (too fast, vulnerable to GPU brute-force). Forgetting to add a salt. Using the same salt for all users. Using a cost factor that is too low for BCrypt (below 10 is not recommended). Confusing encoding (Base64) with encryption or hashing.

This hash generator helps you avoid these mistakes by clearly labeling each algorithm's security level: Broken (MD5, LM), Weak (SHA-1, NTLM), or Strong (SHA-2, SHA-3, BCrypt, Blake2). Use the comparison tab to verify hashes match, and use the download button to export results for documentation.

How to generate a hash

  1. 1
    Enter input text
    Type or paste text into the input area. All 17 hash algorithms compute their hashes automatically as you type, with real-time live preview.
  2. 2
    Choose a tab
    Use the Hash tab for all algorithms, Password Gen for secure passwords, SRI for integrity tags, BCrypt for password hashing, NTLM/LM for Windows hashes, Random for secure random hashes, WordPress/Laravel for framework hashes, Favicon for Shodan hashes, HMAC for keyed authentication, File Hash for files, or Compare to check if two hashes match.
  3. 3
    Toggle output format
    Use the uppercase/lowercase toggle to switch between lowercase and uppercase hex output. Check the character counter and input length display.
  4. 4
    Copy or download
    Copy an individual hash with the copy button, use Copy All to copy every algorithm's result, or use Download to export all hashes as a text file.

Frequently Asked Questions

What is a hash generator?

A hash generator is a tool that computes cryptographic hashes from input data. It takes text or files and produces a fixed-length fingerprint using algorithms like MD5, SHA-256, or BCrypt. This online hash generator supports over 20 algorithms and runs entirely in your browser.

What is MD5?

MD5 (Message Digest 5) is a hash function that produces a 128-bit (32 hex character) output. It is cryptographically broken — collisions can be found in seconds. MD5 should only be used for non-security checksums, never for passwords or digital signatures.

What is SHA-256?

SHA-256 is a cryptographic hash function in the SHA-2 family that produces a 256-bit (64 hex character) output. It is currently secure and widely used for file verification, digital signatures, TLS certificates, and blockchain technology.

What is BCrypt?

BCrypt is a password hashing function designed to be slow and resistant to brute-force attacks. It uses a configurable cost factor (number of iterations) and includes a built-in salt. BCrypt is the recommended choice for password storage in web applications.

Why is MD5 insecure?

MD5 is insecure because collision attacks are practical — attackers can find two different inputs that produce the same MD5 hash. This breaks its use for digital signatures and integrity verification. MD5 is also too fast, making it vulnerable to GPU brute-force attacks on password hashes.

Can hashes be reversed?

No, cryptographic hash functions are one-way. You cannot recover the original input from a hash. However, attackers can try to crack hashes by hashing many candidate inputs (brute-force or dictionary attacks) and comparing the results. This is why slow algorithms like BCrypt are important for passwords.

What is the difference between hashing and encryption?

Hashing is one-way and irreversible — you cannot recover the original data from a hash. Encryption is two-way and reversible with a decryption key — you can recover the original data. Use hashing for verification and password storage; use encryption for data confidentiality.

What is the difference between hashing and encoding?

Hashing is one-way and irreversible. Encoding (like Base64) is reversible — you can decode it back to the original. Encoding provides no security; it only changes data representation. Never use encoding as a substitute for encryption or hashing.

What is NTLM?

NTLM (NT LAN Manager) is a Windows authentication protocol. The NTLM hash is computed as MD4 of the UTF-16LE encoded password. It is used in Active Directory environments but is considered weak. Modern systems should use Kerberos instead. This tool generates NTLM hashes for educational purposes.

What is SHA-512?

SHA-512 is a cryptographic hash in the SHA-2 family that produces a 512-bit (128 hex character) output. It offers a higher security margin than SHA-256 and is suitable for applications requiring maximum collision resistance.

Which hash should I use?

Use SHA-256 or SHA-512 for file integrity and digital signatures. Use BCrypt (cost 12+), scrypt, or Argon2 for password storage. Use HMAC-SHA-256 for API authentication. Avoid MD5 and SHA-1 for any security purpose. Use SHA-3 for future-proofing against potential SHA-2 weaknesses.

What is SHA-3?

SHA-3 is the newest hash standard, based on the Keccak sponge construction. It includes SHA3-224, SHA3-256, SHA3-384, and SHA3-512. SHA-3 uses a completely different internal structure than SHA-2, providing defense-in-depth: if SHA-2 is broken, SHA-3 remains secure.

What is CRC32 used for?

CRC32 (Cyclic Redundancy Check) is a checksum algorithm used for error detection, not cryptography. It is used in network protocols, file archives (ZIP, RAR), and data transmission to detect accidental corruption. CRC32 provides no security against intentional tampering.

What is RIPEMD-160?

RIPEMD-160 is a cryptographic hash function that produces a 160-bit output. It is used in Bitcoin address generation and PGP. While not as widely used as SHA-2, it remains cryptographically intact and offers an alternative hash construction.

What is Blake2?

Blake2 is a cryptographic hash function designed to be faster than MD5 while providing security comparable to SHA-3. Blake2b is optimized for 64-bit platforms and Blake2s for 32-bit platforms. It is used in high-performance applications like Zcash cryptocurrency and WireGuard VPN.

What is a SRI hash?

SRI (Subresource Integrity) is a browser security feature that uses hashes to verify CDN-hosted resources haven't been tampered with. An SRI hash is formatted as algorithm-base64hash (e.g., sha256-abc123...) and added to the integrity attribute of script and link tags.

What is a favicon hash?

A favicon hash is the MD5 hash of a website's favicon file. Shodan uses favicon hashes to discover websites and assets associated with an organization. Security researchers use favicon hashes to find related infrastructure across the internet.

How does BCrypt cost factor work?

The BCrypt cost factor determines the number of iterations as 2^cost. A cost of 10 means 1,024 iterations; a cost of 12 means 4,096 iterations. Higher cost means more security but slower hashing. The recommended minimum is 10, with 12 being a good balance of security and performance.

Is this hash generator safe for sensitive data?

Yes. All hashing is performed locally in your browser using the Web Crypto API and JavaScript. No data is sent to any server. You can safely hash passwords, API keys, and other sensitive data without exposure. The tool works offline once loaded.

What is the difference between SHA-256 and SHA3-256?

SHA-256 is part of the SHA-2 family (Merkle-Damgard construction), while SHA3-256 is part of the SHA-3 family (Keccak sponge construction). Both produce 256-bit outputs and are currently secure. SHA3-256 is recommended for future-proofing because it uses a fundamentally different internal structure.