Skip to content

Bcrypt Hash Generator and Verifier

Generate bcrypt hashes with a chosen cost factor and a random salt, or paste an existing $2a$/$2b$ hash to check whether a test password matches it.

100% Free • No Signup • Zero Uploads (Runs Locally)

100% Local Browser Execution • Zero Server Uploads • Air-Gap Safe

100% Local Tool Execution • Tool Inputs Never Leave Your Browser WebCrypto SubtleCrypto + JS MD5/CRC32

    CtrlEnter to copy output

    Wrong result, broken layout or an idea? Tell us about this tool.

    Bcrypt Hash Generator and Verifier SHA-256, MD5 and NTLM Hash Pipeline & Security Architecture Banner

    This hash generator computes SHA-256, SHA-384, SHA-512, SHA-1, MD5, CRC32, NTLM, HMAC-SHA256 and bcrypt for any text, and file checksums for files of any type, entirely in your browser. SHA hashes come from the Web Crypto API (crypto.subtle.digest), MD5 and CRC32 stream through the file in 8 MB slices, and bcrypt loads only when you select it. Paste a published checksum to verify a download, or compare a hash from a threat report against a sample, without uploading either.

    What does a bcrypt hash contain?

    A bcrypt string such as $2b$10$… holds the version, the cost factor, a 22-character salt and a 31-character hash, 60 characters in total.

    The cost is a power of two: cost 10 means 2^10 key-setup rounds, and each step up doubles the work. Because the salt is random and stored in the string, the same password produces a different hash every time, and verification reads the salt back out of the stored hash.

    Which bcrypt cost factor should you use?

    Pick the highest cost that keeps a login under roughly 250 ms on your server; today that is usually 10 to 12. OWASP now prefers Argon2id for new systems.

    bcrypt only uses the first 72 bytes of a password, so very long passphrases are truncated. Use the slider to feel the cost in your own browser: cost 14 takes noticeably longer than 10.

    Also searched as: bcrypt online, bcrypt verify, bcrypt password hash.

    How do you verify a file checksum?

    Hash the downloaded file with the same algorithm the publisher used, usually SHA-256, and compare the result with the published value; a single changed byte produces a completely different hash.

    Drop the file in the File checksum tab and paste the vendor's value into the compare box. The tool highlights the matching algorithm, or tells you which algorithm a non-matching value looks like based on its length: 32 hex characters for MD5, 40 for SHA-1, 64 for SHA-256 and 128 for SHA-512. A matching checksum proves the file is intact; it proves authenticity only if you got the checksum from a trusted channel, ideally a signed release page.

    From a terminal the same check is sha256sum file.iso on Linux, shasum -a 256 file.iso on macOS and Get-FileHash file.iso -Algorithm SHA256 in PowerShell.

    How it works: Hash & Checksum Generator

    Bcrypt Hash Generator and Verifier SHA-256, MD5 and NTLM Hash Pipeline & Security Architecture Diagram. Local hashing pipeline: text is UTF-8 encoded and files are read in 8 MB File.slice chunks, SHA-1, SHA-256, SHA-384 and SHA-512 run through crypto.subtle.digest, MD5 and CRC32 stream through pure JavaScript, HMAC uses crypto.subtle.sign with the secret key, and the hex digest is compared against an expected checksum without any upload.
    Local hashing pipeline: text is UTF-8 encoded and files are read in 8 MB File.slice chunks, SHA-1, SHA-256, SHA-384 and SHA-512 run through crypto.subtle.digest, MD5 and CRC32 stream through pure JavaScript, HMAC uses crypto.subtle.sign with the secret key, and the hex digest is compared against an expected checksum without any upload.

    How does SHA-256 work, and is it secure?

    SHA-256 pads the input, splits it into 512-bit blocks and runs 64 rounds of bitwise mixing per block to produce a 256-bit digest. No practical collision or preimage attack is known, so it is secure for integrity checks and signatures.

    SHA-256 is a one-way function: there is no key and no way to reverse it. "Decrypting" a hash really means guessing inputs until one matches, which works only for short or common strings such as passwords. That is why passwords need a slow, salted algorithm like bcrypt, not a fast hash.

    Should you still use MD5 or SHA-1?

    Not for security. Both have practical collision attacks, so two different files can share a hash. They remain useful for non-adversarial checks, legacy mirrors and matching indicators of compromise that feeds still publish as MD5.

    Many malware reports and older package mirrors list MD5 or SHA-1, so incident responders still compute them. CRC32 is an error-detecting code, not a cryptographic hash; it appears in zip, gzip and PNG files and catches accidental corruption only.

    What are HMAC-SHA256, bcrypt and NTLM hashes for?

    HMAC-SHA256 authenticates a message with a shared secret (API and webhook signatures), bcrypt stores passwords with a salt and tunable cost, and NTLM is the MD4-based Windows password hash used in Active Directory audits.

    To check a webhook signature, paste the raw request body, enter the signing secret and compare the hex output with the signature header. bcrypt produces a different $2b$ string on every run because the salt is random; use Verify bcrypt to check a password against a stored hash. The NTLM output is MD4 of the UTF-16LE password, useful for testing password-audit tooling with test values. Never paste real production passwords into any web page, including this one.

    Hash algorithm cheat sheet

    Output length and status of common hash algorithms
    AlgorithmHex lengthUse today
    SHA-25664File integrity, signatures, TLS, Git (newer repos)
    SHA-512128Integrity on 64-bit systems, Linux shadow ($6$)
    SHA-140Legacy only: collisions demonstrated (SHAttered)
    MD532Legacy checksums and IOC matching only
    CRC328Accidental corruption detection (zip, PNG)
    HMAC-SHA25664API, JWT HS256 and webhook signatures
    bcrypt60 charsPassword storage (cost 10–12)
    NTLM32Windows password hash (audits, not storage)

    Output length and status of common hash algorithms

    Command-line examples

    Linux / macOS SHA-256

    sha256sum ubuntu.iso   # macOS: shasum -a 256 ubuntu.iso

    PowerShell file hash

    Get-FileHash .\setup.exe -Algorithm SHA256

    HMAC-SHA256 with OpenSSL

    printf %s "$BODY" | openssl dgst -sha256 -hmac "$SECRET"

    Frequently asked questions

    Each hash has a new random salt. Verification uses the salt stored in the hash, so all of them verify against the same password.

    Related Engineering Guides