forked from dryphp/openpgp.php
-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from meitar/docs
Provide more guidance for understanding the examples.
- Loading branch information
Showing
8 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
OpenPGP.php Examples | ||
==================== | ||
|
||
The scripts in this folder show how to use this library to perform various tasks | ||
such as [generating a new key](keygen.php), [signing a message](sign.php), and | ||
[verifying a message](verify.php) that has been signed. | ||
|
||
To use these examples, make sure [`phpseclib`](http://phpseclib.sourceforge.net/) is available. You can install it | ||
using [Composer](https://getcomposer.org/): | ||
|
||
```sh | ||
git clone https://github.com/singpolyma/openpgp-php.git # Clone the repository. | ||
cd openpgp-php | ||
composer install # Use Composer to install the requirements. | ||
``` | ||
|
||
Once Composer has installed the requirements, run the examples using PHP: | ||
|
||
```sh | ||
# Generate a new OpenPGP key; see the `keygen.php` file for parameters. | ||
php ./examples/keygen.php > mykey.gpg | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters