Postgres module

saslprep

procedure · 1 overloadsince 0.27.0Source

The prepared password and true, or password and false when it cannot be prepared. ASCII passwords come back unchanged. The result is in temporary storage unless it is password.

saslprep :: (password: string) -> (string, bool)

The prepared password and true, or password and false when it cannot be prepared. ASCII passwords come back unchanged. The result is in temporary storage unless it is password.

Parameters

password: string
the password as the user gave it.

Returns

string
bool