Fake Hash Generator
Generates realistic fake hash strings in MD5, SHA-1, SHA-256, and bcrypt formats
- 8f7d6259d86fc91cbd550008006a968f2e275ddbe13feda34678b213373195f8SHA-256
- 7e8356042e4345452a41c572159ea24af65de77986d703be0f174926b6254102SHA-256
- e3781c10e0c50cd8defa8d0b438e0e26d6bbe97851b8ff158be9058593ab324dSHA-256
- 35ab9f6871f113dcbcc92f67d8f16715ad11dfcd6339f1d0c4ca63a007a66c98SHA-256
- b3c73a0d618e4571651572d8b077da6af3987a8903783f68d0dedfb33288b166SHA-256
- 31b96b8099f3a01713a1fe560c7993e85f8c35be16e8e5bab7c4d47bddd9ab2dSHA-256
Generated 6 items
See 3 examples
- Example 1
8f7d6259d86fc91cbd550008006a968f2e275ddbe13feda34678b213373195f8 7e8356042e4345452a41c572159ea24af65de77986d703be0f174926b6254102 e3781c10e0c50cd8defa8d0b438e0e26d6bbe97851b8ff158be9058593ab324d 35ab9f6871f113dcbcc92f67d8f16715ad11dfcd6339f1d0c4ca63a007a66c98 b3c73a0d618e4571651572d8b077da6af3987a8903783f68d0dedfb33288b166 31b96b8099f3a01713a1fe560c7993e85f8c35be16e8e5bab7c4d47bddd9ab2d
- Example 2
c1bb31c14e5b2ef530392f69d84e9d0763718cbb96172a83e291a2f67ce40d16 b3a7606efbe7b37c77972afc1cef5b3c6e203fbba40a67de19588247bf4f538a 50cf786789ffa53426e451d5727e02b7805ef123ddfe0cf7240d63264a1e5ff0 46cf3b037b7440ba8c79e0d326407af6e299f7681345c27fd17404a50112f1b3 df3be6fb9e30d7eee56451df07ac5e5c2b74e51ea945d3761e34551367697f58 70e051aef5aa40afdfeedc90ae54fe9690d6d8c4e666bd3033a39244f3449c00
- Example 3
7988c3739d4cd96fcd0eee41270581955303e0f45ad85cd733c3e1469b5f0be8 6d81760c24983721a66fc7b7e23b556f28a6e03431f57ed2e48e014806ba0880 0fcf19f8a2bb4e93ea44439475ab2c662326aa452a9b6ba310310b8586622b80 2d28bd8b6839f09f7d481780e1481fcb56b476af23b381a08e0dc9d4ca54c66a f9ea4f84b2c4c27abb7dd6caa97fd19556b6d8f63688bb26cf95e59113e11482 068dd96507831e7332d3aadad743a8fd6c07b3173bdcfb83548269ca3fa65c03
About this generator
Seed scripts and fixture files that need a password_hash column should not require a real cryptographic function just to get a placeholder. A fake hash generator produces correctly formatted strings for five algorithms — MD5, SHA-1, SHA-256, SHA-512, and bcrypt — without hashing any real input. Two inputs control the output. Count sets the batch size (1–30). Hash Type determines the format: MD5 outputs 32 lowercase hex characters, SHA-1 outputs 40, SHA-256 outputs 64, SHA-512 outputs 128. bcrypt outputs a $2b$[cost]$[salt][hash] string with a random cost factor between 10 and 14 — the exact format bcrypt.compare() and password_verify() expect. Critical: fake bcrypt hashes will not pass bcrypt.compare() or password_verify() since no real password was hashed. Use them for testing how your code stores and displays hash values, not for scenarios where a password check must succeed.
How to use
- Select your desired hash format from the Hash Type dropdown: MD5, SHA-1, SHA-256, or bcrypt.
- Set the Number of Hashes count to match how many placeholder values you need for your seed file or test.
- Click Generate to produce the hash list instantly in the output panel.
- Copy individual hashes by clicking them, or copy the full list to paste into your SQL fixture, JSON mock, or documentation.
Use Cases
- •Seeding password_hash columns in a Postgres fixture file with structurally valid bcrypt strings
- •Populating ETag or checksum fields in mock API responses for Postman or WireMock test suites
- •Generating bulk SHA-256 placeholders for a Cypress end-to-end test that validates 64-char hex input
- •Adding realistic MD5 values to legacy CSV imports during a database migration dry run
- •Writing auth service documentation with concrete bcrypt hash examples instead of placeholder text
Tips
- →For bcrypt columns, generate hashes in the same count as your seed rows so each user record gets a unique placeholder.
- →If your schema enforces a VARCHAR(60) for bcrypt or VARCHAR(64) for SHA-256, verify column length before bulk-inserting — a mismatch will silently truncate or error.
- →Pair SHA-256 fake hashes with a fake UUID generator to create complete mock user records with both an ID and a password hash in one pass.
- →Use MD5 format when seeding legacy systems or testing code that validates 32-character hex — many older PHP and Python apps still write MD5 to the database.
- →When writing API documentation, generate three to five SHA-256 hashes and use them as consistent examples across request and response samples so examples look cohesive.
- →Avoid reusing the same fake hash across multiple rows in a unique-indexed column — generate a fresh batch for each seeding run to prevent constraint violations.
FAQ
how to get a fake SHA-256 hash for unit tests without hashing real data
Select SHA-256 from the Hash Type dropdown, set your count, and click Generate. Each result is a 64-character lowercase hex string — the exact length a real SHA-256 digest produces. Paste them directly into Jest fixtures, Postman mock responses, or SQL seed scripts. No real input is hashed and no crypto library is needed.
will a fake bcrypt hash pass a password_verify or bcrypt.compare check
No. These strings match bcrypt's $2b$[cost]$[salt][hash] structure and satisfy column constraints and length validations, but they are not derived from any password. Any bcrypt.compare() or password_verify() call will return false. Use them for testing queries, migrations, or UI rendering — not for scenarios where login actually needs to succeed.
what are the output lengths for each hash type
MD5 outputs 32 hex characters, SHA-1 outputs 40, SHA-256 outputs 64, and SHA-512 outputs 128. bcrypt outputs a $2b$[cost]$ prefix plus 53 characters of salt and hash, totaling around 60 characters. The generator respects these exact lengths so placeholder values slot into the correct database column size without truncation.
can I use these fake hashes in an ETag or checksum field
Yes. ETags and content-checksum fields typically store hex digest strings without caring about cryptographic derivation — they just need the correct length and character set. SHA-256 fake hashes work well since ETags often use 64-character hex digests, and the placeholder values satisfy format validators without requiring you to hash actual content.
You might also like
Popular tools from other categories that share themes with this one.