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

File: GPG.php

Source Location: /Crypt_GPG-1.6.4/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, see <http://www.gnu.org/licenses/>

Includes:

require_once('Crypt/GPGAbstract.php') [line 60]
Base class for GPG methods
require_once('Crypt/GPG/Exceptions.php') [line 65]
GPG exception classes.

Documentation generated on Sun, 22 Mar 2020 08:01:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.