mple of authentication:
</p><pre class="programlisting">
SELECT (pswhash = crypt('entered password', pswhash)) AS pswmatch FROM ... ;
</pre><p>
    This returns <code class="literal">true</code> if the entered password is correct.
   </p></div><div class="sect3" id="PGCRYPTO-PASSWORD-HASHING-FUNCS-GEN-SALT"><div class="titlepage"><div><div><h4 class="title">F.28.2.2. <code class="function">gen_salt()</code> <a href="#PGCRYPTO-PASSWORD-HASHING-FUNCS-GEN-SALT" class="id_link">#</a></h4></div></div></div><a i