Skip to content

pg v1.3.0

Choose a tag to compare

@Mosaad-M Mosaad-M released this 24 Mar 18:55
· 29 commits to main since this release

What's new

  • SCRAM-SHA-256 authentication (RFC 5802) — works with modern PostgreSQL servers (PG 14+ defaults to SCRAM)
    • PBKDF2-HMAC-SHA-256 key derivation, server signature verification
    • SHA-256 and HMAC-SHA-256 implemented inline (no new dependencies)
  • exec_params() — parameterized queries via Extended Query protocol
    • Uses $1, $2, ... placeholders; parameters sent as text values
    • Prevents SQL injection without manual quoting

Auth methods supported

Method auth_type
Trust 0
Cleartext 3
MD5 5
SCRAM-SHA-256 10 (new)

Tests

13/13 pass