One can use mkpasswd(1) from the "whois" package (!) to generate these hashes supported by crypt(3): $ mkpasswd -5 secret $1$0UiJQbpc$QoJQqJIT1DCHtQYGwJHZh0
$ mkpasswd -m sha-256 secret $5$.oyALiVLtCvfBa$cvNlH7IxsirDkBN/vIvHB54p0MPwqxSyiulqnYVMxt/
$ mkpasswd -m sha-512 secret $6$mbXQ/gDvUCn$Hs6sz8LAWN3fX1I/MoaJjsYSIYs8tqOUjgoQnXLY4X1dTSlBhbyiJYpTZZDEALXw.hRL97e7l/.xI7qZi0Phe.
and of course plain DES: $ mkpasswd secret CYwwQkoOVS3oE
All of the above are supported by libapache2-mod-auth-pgsql's "Auth_PG_hash_type CRYPT".
One can use mkpasswd(1) from the "whois" package (!) to generate these hashes supported by crypt(3): QoJQqJIT1DCHtQY GwJHZh0
$ mkpasswd -5 secret
$1$0UiJQbpc$
$ mkpasswd -m sha-256 secret Ba$cvNlH7IxsirD kBN/vIvHB54p0MP wqxSyiulqnYVMxt /
$5$.oyALiVLtCvf
$ mkpasswd -m sha-512 secret $6$mbXQ/ gDvUCn$ Hs6sz8LAWN3fX1I /MoaJjsYSIYs8tq OUjgoQnXLY4X1dT SlBhbyiJYpTZZDE ALXw.hRL97e7l/ .xI7qZi0Phe.
and of course plain DES:
$ mkpasswd secret
CYwwQkoOVS3oE
All of the above are supported by libapache2- mod-auth- pgsql's "Auth_PG_hash_type CRYPT".