pgcrypto
cryptographic functions
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgcrypto | 1.3 | SEC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 7980 | pgcrypto | No | Yes | No | Yes | Yes | No | - |
Version
| PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|
| 1.3 | 1.3 | 1.3 | 1.3 | 1.3 |
Install
Note: This is a built-in contrib extension of PostgreSQL
Usage
pgcrypto provides cryptographic functions including hashing, password hashing, PGP encryption, and raw encryption.
General Hashing
Supported algorithms: md5, sha1, sha224, sha256, sha384, sha512.
Password Hashing
gen_salt() types: bf (Blowfish), md5, xdes, des, sha256crypt, sha512crypt.
PGP Symmetric Encryption
PGP Public Key Encryption
Key Utilities
Raw Encryption
Algorithms: bf (Blowfish), aes. Modes: cbc (default), cfb, ecb. Padding: pkcs (default), none.
Random Data
PGP Encryption Options
| Option | Values | Default |
|---|---|---|
cipher-algo | bf, aes128, aes192, aes256, 3des, cast5 | aes128 |
compress-algo | 0 (none), 1 (ZIP), 2 (ZLIB) | 0 |
compress-level | 0-9 | 6 |
s2k-mode | 0, 1, 3 | 3 |
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)