Expand description
PostgreSQL authentication: MD5 and SCRAM-SHA-256.
The hashing primitives come from crates rather than being hand-written — this is the one place where “from scratch” would be a liability instead of a feature. Everything around them, including the SCRAM message flow, is ours.
Structs§
- Scram
- A SCRAM-SHA-256 exchange in progress.
Functions§
- md5_
password - The
md5auth response:md5+ hex(md5(hex(md5(password + user)) + salt)).