chkpass
data type for auto-encrypted passwords
Repository
lacanoid/chkpass
https://github.com/lacanoid/chkpass
Source
chkpass-1.0.tar.gz
chkpass-1.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
chkpass | 1.0 | TYPE | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3920 | chkpass | No | Yes | No | Yes | No | No | - |
| Related | column_encrypt pg_enigma pg_pwhash passwordcheck supabase_vault pg_tde passwordcheck_cracklib passwordpolicy credcheck pgsodium |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 1817161514 | chkpass | - |
| RPM | PIGSTY | 1.0 | 1817161514 | chkpass_$v | - |
| DEB | PIGSTY | 1.0 | 1817161514 | postgresql-$v-chkpass | - |
Build
You can build the RPM / DEB packages for chkpass using pig build:
Install
You can install chkpass directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
The chkpass extension provides a data type for storing encrypted passwords. Originally bundled with PostgreSQL (removed in PG 11), this is a standalone version for modern PostgreSQL.
Data Type
The chkpass type automatically encrypts passwords using Unix crypt() on input and stores only the encrypted form.
Operators
The = operator checks a plaintext password against the stored encrypted value:
Behavior
- Passwords are automatically encrypted on input – the plaintext is never stored
- Output displays the encrypted hash, not the original password
- Comparison with
=encrypts the right-hand operand and compares hashes - Uses the standard Unix
crypt()function for encryption
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)