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

File: GPG.php

Source Location: /Crypt_GPG-1.4.0b4/Crypt/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/GPGAbstract.php') [line 61]
Base class for GPG methods
require_once('Crypt/GPG/VerifyStatusHandler.php') [line 66]
Signature handler class
require_once('Crypt/GPG/DecryptStatusHandler.php') [line 71]
Decryption handler class

Documentation generated on Wed, 13 Mar 2013 18:30:07 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.