mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-27 08:33:20 +00:00
c18e0dc66a
- 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 |
||
---|---|---|
.. | ||
armorEncryptSignCompress.php | ||
clearsign.php | ||
deASCIIdeCrypt.php | ||
encryptDecrypt.php | ||
keygen.php | ||
keygenEncrypted.php | ||
keygenSubkeys.php | ||
README.md | ||
sign.php | ||
verify.php |
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