MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / MD5Password

Struct MD5Password

internal/postgres/password/md5.go:19–24  ·  view source on GitHub ↗

MD5Password implements the PostgresPassword interface for hashing passwords using the PostgreSQL MD5 method

Source from the content-addressed store, hash-verified

17// MD5Password implements the PostgresPassword interface for hashing passwords
18// using the PostgreSQL MD5 method
19type MD5Password struct {
20 // password is the plaintext password
21 password string
22 // username is the PostgreSQL username
23 username string
24}
25
26// Build creates the MD5 password format for PostgreSQL which resembles
27// "md5" + md5("password" + "username")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected