ss="function">pgp_key_id()</code> <a href="#PGCRYPTO-PGP-ENC-FUNCS-PGP-KEY-ID" class="id_link">#</a></h4></div></div></div><a id="id-1.11.7.38.9.15.2" class="indexterm"></a><pre class="synopsis">
pgp_key_id(bytea) returns text
</pre><p>
    <code class="function">pgp_key_id</code> extracts the key ID of a PGP public or secret key.
    Or it gives the key ID that was used for encrypting the data, if given
    an encrypted message.
   </p><p>
    It can return 2 special key IDs:
   </p><div class="itemizedlis