PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

Introduction and Overview | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

Introduction and Overview

Introduction

Crypt_GPG is a PHP package to interact with the GNU Privacy Guard (GnuPG). GnuPG is a free and open-source implementation of the OpenPGP protocol, providing key management, data encryption and data signing. Crypt_GPG provides an object-oriented API for performing OpenPGP actions using GnuPG.

GnuPG is distributed as an executable program with a command-line argument syntax for performing actions. Crypt_GPG uses PHP's program execution functions to run GnuPG as a subprocess, performing the desired action. Crypt_GPG automatically handles process control, stream handling and error checking of the GnuPG subprocess. Crypt_GPG uses PHP streams internally for most actions, allowing (among other things) any streamable resource to be used with the Crypt_GPG file commands.

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

Overview

The basic internal overview of a GnuPG command executed in Crypt_GPG is as follows:

  1. build the required command line,

  2. open the GnuPG subprocess with the command line,

  3. stream data to and from the GnuPG subprocess on various IPC pipes until the command is finished,

  4. close the GnuPG subprocess and,

  5. check for errors.

Crypt_GPG handles all these details internally so GnuPG can be used with minimal effort from the developer.

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「Introduction and Overview」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | Introduction and Overview」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: