Crypt_GPG
[ class tree: Crypt_GPG ] [ index: Crypt_GPG ] [ all elements ]

File: GPG.php

Source Location: /Crypt_GPG-1.0.0/GPG.php

Classes:

Crypt_GPG
A class to use GPG from PHP

Page Details:

Crypt_GPG is a package to use GPG from PHP

This package provides an object oriented interface to GNU Privacy Guard (GPG). It requires the GPG executable to be on the system.

Though GPG can support symmetric-key cryptography, this package is intended only to facilitate public-key cryptography.

This file contains the main GPG class. The class in this file lets you encrypt, decrypt, sign and verify data; import and delete keys; and perform other useful GPG tasks.

Example usage:

  1.  <?php
  2.  // encrypt some data
  3.  $gpg = new Crypt_GPG();
  4.  $gpg->addEncryptKey($mySecretKeyId);
  5.  $encryptedData $gpg->encrypt($data);
  6.  ?>

PHP version 5

LICENSE:

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Includes:

require_once('Crypt/GPG/Key.php') [line 71]
GPG key class
require_once('Crypt/GPG/VerifyStatusHandler.php') [line 61]
Signature handler class
require_once('Crypt/GPG/DecryptStatusHandler.php') [line 66]
Decryption handler class
require_once('Crypt/GPG/SubKey.php') [line 76]
GPG sub-key class
require_once('Crypt/GPG/Exceptions.php') [line 91]
GPG exception classes
require_once('Crypt/GPG/UserId.php') [line 81]
GPG user id class
require_once('Crypt/GPG/Engine.php') [line 86]
GPG process and I/O engine class

Documentation generated on Thu, 22 Jan 2009 21:30:10 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.