MockHero

password_hash

Security

Generate bcrypt or Argon2 format password hashes for direct database seeding. No hashing libraries needed — insert pre-hashed passwords directly into your users table.

Example Outputs

$2b$10$EixZaYVK1fsbw1ZfbX3OXePaOxn06gO.JHpN/aQ...$argon2id$v=19$m=65536,t=3,p=4$...

Parameters

ParameterDescription
roundsHash rounds (default 10)
algorithmHash algorithm (bcrypt, argon2)

API Usage

Send a POST request to generate password hash data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "password_hash",
          "type": "password_hash",
          "params": {
            "algorithm": "bcrypt"
          }
        }
      ]
    }
  ]
}'

Common Use Cases

  • Database seeding with login-ready users
  • Auth system testing
  • Password storage testing

Quick Info

Field Type
password_hash
Category
Security
Parameters
2 parameters
Output Format
JSON, CSV, SQL

Try it now

Generate password hash data instantly in the playground.

Generate Password Hash + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free