The SCRAM-SHA-256 authentication protocol, defined by RFC 7677 and available since PostgreSQL 10, uses SCRAM secrets. There are used during authentication as equivalents of passwords and stored in pg_authid, shaped based on RFC 5803 for LDAP. This format can be described as a string made of: <SCRAM mechanisms>$<iterations>:<salt>$<stored key>:<server key> For all the details regarding that, feel free to look at the RFCs quoted above. When it comes to SCRAM-SHA-256 in PostgreSQL, the mechanism...