PostgreSQL stores password hashes in pg_authid and supports md5 (legacy) and SCRAM-SHA-256 (modern). The Create PostgreSQL Password tool generates PostgreSQL-compatible hashes (md5 or SCRAM-SHA-256) so you can create users without sending the password to the server in plain text. Hashing runs in your browser—your password never leaves your device.
What hash format does PostgreSQL use?
PostgreSQL supports md5 (password + username) for older configs and SCRAM-SHA-256 for modern authentication. For md5 you need the PostgreSQL username—PostgreSQL combines password and username. Enter password and, for md5, the username; choose md5 or SCRAM-SHA-256; copy the hash into pg_authid or your user setup. No password is sent to any server. Use it when creating PostgreSQL users and you need a hash for authentication without sending the password to the server in plain text. If SCRAM hash does not match, SCRAM uses a salt and iterations—ensure the tool's output format matches what PostgreSQL expects (e.g. stored in pg_authid).
Key Features
- Formats — md5 (password + username) for older configs; SCRAM-SHA-256 for modern auth.
- Username for md5 — Yes. For md5 format enter the PostgreSQL username in the tool.
- Privacy — No. Hashing runs in your browser. Your password never leaves your device.
- Input — Password and, for md5, username. Choose md5 or SCRAM-SHA-256. Copy hash into pg_authid or user setup.
- When to use — Creating PostgreSQL users with hash, without sending password in plain text to server.
- SCRAM mismatch — SCRAM uses salt and iterations. Ensure tool output format matches what PostgreSQL expects (e.g. pg_authid).
How to Use Create PostgreSQL Password
- Open the Create PostgreSQL Password tool.
- Enter password. For md5 enter PostgreSQL username. Choose md5 or SCRAM-SHA-256. Copy the generated hash.
- Use hash in pg_authid or CREATE USER / ALTER USER. Use the "Use tool" button on the docs page if you are reading this from the documentation.
Real Use Cases
Why Use Create PostgreSQL Password Instead of Alternatives?
- vs. Create MySQL Password — Create MySQL Password is for MySQL. This tool is for PostgreSQL (md5 or SCRAM-SHA-256). Use the right DB tool.
- vs. Create MariaDB Password — Create MariaDB Password is for MariaDB. Use this for Postgres.
- vs. Bcrypt Generator — Bcrypt Generator is for application passwords. Postgres uses md5/SCRAM for DB users. Use this for Postgres users.
- vs. Plain password — Hash in browser, use hash in Postgres. No plain password to server.
Benefits for DBAs and Developers
- DBAs — Create Postgres users with hash. No plain-text password on the wire.
- Developers — Generate hashes for local or CI Postgres. Match format to server (md5 vs SCRAM).
Common Mistakes
- SCRAM hash not match — SCRAM uses a salt and iterations. Ensure the tool's output format matches what PostgreSQL expects (e.g. stored in pg_authid).
- md5 without username — For md5 you must enter the PostgreSQL username. Tool combines password + username.
- Expecting verification — This tool only generates. To verify use Postgres or Bcrypt Verifier for bcrypt hashes only.
- Forgetting to copy — Copy the hash before closing the tab.
Frequently Asked Questions
What hash format does PostgreSQL use?
PostgreSQL supports md5 (password + username) for older configs and SCRAM-SHA-256 for modern authentication.
Do I need a username for the hash?
For md5 format, yes—PostgreSQL combines password and username. Enter the username in the tool when generating md5.
Is my password sent to a server?
No. Hashing runs in your browser. Your password never leaves your device.
Password and, for md5, the PostgreSQL username. Choose md5 or SCRAM-SHA-256. Copy the hash into pg_authid or your user setup.
Use it when creating PostgreSQL users and you need a hash for authentication without sending the password to the server in plain text.
Why does SCRAM hash not match?
SCRAM uses a salt and iterations. Ensure the tool's output format matches what PostgreSQL expects (e.g. stored in pg_authid).
Create PostgreSQL Password gives you Postgres-compatible hashes in one place: enter password (and username for md5), choose format, copy hash. No server, no account. For MySQL use Create MySQL Password, for MariaDB use Create MariaDB Password, for bcrypt use Bcrypt Generator, and for random passwords use Password Generator.
Use the Create PostgreSQL Password tool to generate PostgreSQL password hashes.