The SCRAM-SHA-256 secret the server stores for a password, to put in ALTER ROLE ... PASSWORD
without the server seeing the password (libpq's PQencryptPasswordConn does the same). The
password is prepared with SASLprep. iterations is what the server reports as
scram_iterations, 4096 by default.
- password: the plain password.
- iterations: how many rounds of hashing to apply.
scram_secret :: (password: string, iterations := 4096) -> string
The SCRAM-SHA-256 secret the server stores for a password, to put in ALTER ROLE ... PASSWORD
without the server seeing the password (libpq's PQencryptPasswordConn does the same). The
password is prepared with SASLprep. iterations is what the server reports as
scram_iterations, 4096 by default.
Parameters
- password: string
- the plain password.
- iterations := 4096
- how many rounds of hashing to apply.
Returns
- string