<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>GnuPG Functions</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="gnupg.examples-clearsign.html">Clearsign text</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.gnupg-adddecryptkey.html">gnupg_adddecryptkey</a></div> <div class="up"><a href="book.gnupg.html">GnuPG</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="ref.gnupg" class="reference"> <h1 class="title">GnuPG Functions</h1> <div class="partintro"> <h1 class="title">Notes</h1> <p class="para"> 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 <a href="function.putenv.html" class="link">putenv</a> for more information how to do this. </p> <p class="para"> 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. </p> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.gnupg-adddecryptkey.html">gnupg_adddecryptkey</a> — Add a key for decryption</li><li><a href="function.gnupg-addencryptkey.html">gnupg_addencryptkey</a> — Add a key for encryption</li><li><a href="function.gnupg-addsignkey.html">gnupg_addsignkey</a> — Add a key for signing</li><li><a href="function.gnupg-cleardecryptkeys.html">gnupg_cleardecryptkeys</a> — Removes all keys which were set for decryption before</li><li><a href="function.gnupg-clearencryptkeys.html">gnupg_clearencryptkeys</a> — Removes all keys which were set for encryption before</li><li><a href="function.gnupg-clearsignkeys.html">gnupg_clearsignkeys</a> — Removes all keys which were set for signing before</li><li><a href="function.gnupg-decrypt.html">gnupg_decrypt</a> — Decrypts a given text</li><li><a href="function.gnupg-decryptverify.html">gnupg_decryptverify</a> — Decrypts and verifies a given text</li><li><a href="function.gnupg-encrypt.html">gnupg_encrypt</a> — Encrypts a given text</li><li><a href="function.gnupg-encryptsign.html">gnupg_encryptsign</a> — Encrypts and signs a given text</li><li><a href="function.gnupg-export.html">gnupg_export</a> — Exports a key</li><li><a href="function.gnupg-geterror.html">gnupg_geterror</a> — Returns the errortext, if a function fails</li><li><a href="function.gnupg-getprotocol.html">gnupg_getprotocol</a> — Returns the currently active protocol for all operations</li><li><a href="function.gnupg-import.html">gnupg_import</a> — Imports a key</li><li><a href="function.gnupg-init.html">gnupg_init</a> — Initialize a connection</li><li><a href="function.gnupg-keyinfo.html">gnupg_keyinfo</a> — Returns an array with information about all keys that matches the given pattern</li><li><a href="function.gnupg-setarmor.html">gnupg_setarmor</a> — Toggle armored output</li><li><a href="function.gnupg-seterrormode.html">gnupg_seterrormode</a> — Sets the mode for error_reporting</li><li><a href="function.gnupg-setsignmode.html">gnupg_setsignmode</a> — Sets the mode for signing</li><li><a href="function.gnupg-sign.html">gnupg_sign</a> — Signs a given text</li><li><a href="function.gnupg-verify.html">gnupg_verify</a> — Verifies a signed text</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="gnupg.examples-clearsign.html">Clearsign text</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.gnupg-adddecryptkey.html">gnupg_adddecryptkey</a></div> <div class="up"><a href="book.gnupg.html">GnuPG</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>