friendica-addons-sekb/securemail/vendor/singpolyma/openpgp-php/examples
Hypolite Petovan c18e0dc66a [securemail] Upgrade singpolyma/openpgp to version 0.6.0
- Add missing use statement in SecureTestEmail
- Address https://github.com/friendica/friendica/issues/12011#issuecomment-1321196332
- phpseclib version 3 dependency is implied from the core so it is removed from the addon
2022-11-24 14:04:53 -05:00
..
armorEncryptSignCompress.php [securemail] Upgrade Composer dependencies to fix PHP8 issue 2021-11-16 15:37:37 -05:00
clearsign.php [securemail] Upgrade Composer dependencies to fix PHP8 issue 2021-11-16 15:37:37 -05:00
deASCIIdeCrypt.php [securemail] Upgrade Composer dependencies to fix PHP8 issue 2021-11-16 15:37:37 -05:00
encryptDecrypt.php [securemail] Upgrade Composer dependencies to fix PHP8 issue 2021-11-16 15:37:37 -05:00
keygen.php [securemail] Upgrade singpolyma/openpgp to version 0.6.0 2022-11-24 14:04:53 -05:00
keygenEncrypted.php [securemail] Upgrade singpolyma/openpgp to version 0.6.0 2022-11-24 14:04:53 -05:00
keygenSubkeys.php [securemail] Upgrade singpolyma/openpgp to version 0.6.0 2022-11-24 14:04:53 -05:00
README.md [securemail] Upgrade Composer dependencies to fix PHP8 issue 2021-11-16 15:37:37 -05:00
sign.php [securemail] Upgrade Composer dependencies to fix PHP8 issue 2021-11-16 15:37:37 -05:00
verify.php [securemail] Upgrade Composer dependencies to fix PHP8 issue 2021-11-16 15:37:37 -05:00

OpenPGP.php Examples

The scripts in this folder show how to use this library to perform various tasks such as generating a new key, signing a message, and verifying a message that has been signed.

To use these examples, make sure phpseclib is available. You can install it using Composer:

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:

# Generate a new OpenPGP key; see the `keygen.php` file for parameters.
php ./examples/keygen.php > mykey.gpg