Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Clearsign textgnupg_adddecryptkey>
^GnuPGLast updated: Mon, 26 Oct 2026

GnuPG Functions

Notes

This extension makes use of the keyring of the current user. This keyring is normally located in ~/.gnupg/. To specify a custom location, store the path to the keyring in the environment variable GNUPGHOME. See putenv for more information how to do this.

Some functions require the specification of a key. This specification can be anything that refers to a unique key (userid, key-id, fingerprint, ...). This documentation uses the fingerprint in all examples.

Note:

As alternative to the explicitly documented functions using resources, you can also use an object-oriented style using gnupg objects.

Table of Contents


<Clearsign textgnupg_adddecryptkey>
^GnuPGLast updated: Mon, 26 Oct 2026