erm"></a><pre class="synopsis">
pgp_pub_encrypt(data text, key bytea [, options text ]) returns bytea
pgp_pub_encrypt_bytea(data bytea, key bytea [, options text ]) returns bytea
</pre><p>
    Encrypt <em class="parameter"><code>data</code></em> with a public PGP key <em class="parameter"><code>key</code></em>.
    Giving this function a secret key will produce an error.
   </p><p>
    The <em class="parameter"><code>options</code></em> parameter can contain option settings,
    as described below.
   </p><