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

File: GPG.php

Source Location: /Crypt_GPG-0.6.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 Crypt_GPG::factory('php');
  4.  $encrypted_data $gpg->encrypt($my_secret_key_id$data);
  5.  ?>

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('PEAR/Exception.php') [line 59]
PEAR exception for factory() method.

Documentation generated on Mon, 11 Mar 2019 15:19:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.