pg_argon2id
PostgreSQL extension for Argon2id password hashing functions
pg_argon2id · PostgreSQL extension for Argon2id password hashing functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101515 | pg_argon2id | pg_argon2id | 1.0 | SEC | MIT | C |
Usage
Sources:
- Official upstream README
- Official extension control file (pg_argon2id.control)
- Official extension SQL (pg_argon2id–1.0.sql)
pg_argon2id — A PostgreSQL extension that provides secure password hashing using the Argon2id algorithm. Use it when implementing the corresponding security, audit, or access-control workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
argon2id_hash(password text, salt_length integer DEFAULT 16, time_cost integer DEFAULT 3, memory_cost integer DEFAULT 262144, parallelism integer DEFAULT 4)is an extension function and returnstext.argon2id_verify(password text, hash text)is an extension function and returnsboolean.
Requirements and Caveats
- The reviewed control file declares default version
1.0. - The control file marks the extension as relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.