{"id":45684049,"url":"https://github.com/web-of-trust/php-privacy","last_synced_at":"2026-03-05T06:04:32.777Z","repository":{"id":162898701,"uuid":"633798093","full_name":"web-of-trust/php-privacy","owner":"web-of-trust","description":" PHP Privacy - The OpenPGP library in PHP language ","archived":false,"fork":false,"pushed_at":"2026-01-20T10:46:02.000Z","size":2830,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-20T19:48:18.895Z","etag":null,"topics":["cryptography","encryption","openpgp","privacy-guard","rfc4880","rfc6637","rfc9580","signing"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web-of-trust.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-28T09:53:15.000Z","updated_at":"2026-01-13T09:05:30.000Z","dependencies_parsed_at":"2024-09-09T04:49:00.766Z","dependency_job_id":"e6beaff4-0e48-42f7-b946-353ca1f99e12","html_url":"https://github.com/web-of-trust/php-privacy","commit_stats":null,"previous_names":["emolis/php-privacy"],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/web-of-trust/php-privacy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-of-trust%2Fphp-privacy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-of-trust%2Fphp-privacy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-of-trust%2Fphp-privacy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-of-trust%2Fphp-privacy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-of-trust","download_url":"https://codeload.github.com/web-of-trust/php-privacy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-of-trust%2Fphp-privacy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29786971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","encryption","openpgp","privacy-guard","rfc4880","rfc6637","rfc9580","signing"],"created_at":"2026-02-24T14:54:01.768Z","updated_at":"2026-03-05T06:04:32.763Z","avatar_url":"https://github.com/web-of-trust.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP Privacy - The OpenPGP library in PHP language\n=================================================\nPHP Privacy is an implementation of the OpenPGP standard in PHP language.\nIt implements [RFC 9580](https://www.rfc-editor.org/rfc/rfc9580) and\nprovides encryption with public key or symmetric cryptographic algorithms,\ndigital signatures, compression, and key management.\n\n## Requirement\n* PHP 8.1.x or later,\n* [phpseclib](https://github.com/phpseclib/phpseclib) library provides cryptography algorithms,\n* [Argon2](https://github.com/P-H-C/phc-winner-argon2) for Argon2 string-to-key,\n* (optional) PHPUnit to run tests,\n\n## Features\n* Support data signing \u0026 encryption.\n* Support key management: key generation, key reading, key decryption.\n* Support public-key algorithms: [RSA](https://www.rfc-editor.org/rfc/rfc3447),\n  [ECDSA](https://www.rfc-editor.org/rfc/rfc6979),\n  [EdDSA](https://www.rfc-editor.org/rfc/rfc8032)\n  and [ECDH](https://en.wikipedia.org/wiki/Elliptic-curve_Diffie%E2%80%93Hellman).\n* Support symmetric ciphers: Blowfish, Twofish,\n  [AES](https://www.rfc-editor.org/rfc/rfc3394),\n  [Camellia](https://www.rfc-editor.org/rfc/rfc3713).\n* Support AEAD ciphers: [EAX](https://seclab.cs.ucdavis.edu/papers/eax.pdf),\n  [OCB](https://tools.ietf.org/html/rfc7253),\n  [GCM](https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-38d.pdf).\n* Support hash algorithms: SHA-256, SHA-384, SHA-512, SHA-224, SHA3-256, SHA3-512.\n* Support compression algorithms: Zip, Zlib, BZip2.\n* Support [ECC](https://en.wikipedia.org/wiki/Elliptic-curve_cryptography) curves:\n  [secp256r1, secp384r1, secp521r1](https://www.rfc-editor.org/rfc/rfc6090),\n  [brainpoolP256r1, brainpoolP384r1, brainpoolP512r1](https://www.rfc-editor.org/rfc/rfc5639),\n  [Curve25519, Curve448](https://www.rfc-editor.org/rfc/rfc7748),\n  [Ed25519, Ed448](https://www.rfc-editor.org/rfc/rfc8032).\n* Support public-key algorithms, symmetric ciphers \u0026 hash algorithms\n  for signature verification \u0026 message decryption (backward compatibility):\n  DSA, ElGamal, TripleDES, IDEA, CAST5, MD5, SHA-1, RIPEMD-160.\n\n## Installation\nVia [Composer](https://getcomposer.org)\n```bash\n$ composer require php-privacy/openpgp\n```\nor just add it to your `composer.json` file directly.\n```javascript\n{\n    \"require\": {\n        \"php-privacy/openpgp\": \"^2.1\"\n    }\n}\n```\n\n## Basic usage of PHP Privacy\nSign and verify cleartext message\n```php\n\u003c?php declare(strict_types=1);\n\nrequire_once 'vendor/autoload.php';\n\nuse OpenPGP\\OpenPGP;\n\n$armoredPublicKey = '-----BEGIN PGP PUBLIC KEY BLOCK-----';\n$armoredPrivateKey = '-----BEGIN PGP PRIVATE KEY BLOCK-----';\n$passphrase = 'Your passphrase';\n\n$publicKey = OpenPGP::readPublicKey($armoredPublicKey);\n$privateKey = OpenPGP::decryptPrivateKey($armoredPrivateKey, $passphrase);\n$cleartextMessage = OpenPGP::createCleartextMessage('Hello, PHP Privacy!');\n$signedMessage = $cleartextMessage-\u003esign([$privateKey]);\n$verifications = $signedMessage-\u003everify([$publicKey]);\n```\n\n## Licensing\n[BSD 3-Clause](LICENSE)\n\n    For the full copyright and license information, please view the LICENSE\n    file that was distributed with this source code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-of-trust%2Fphp-privacy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-of-trust%2Fphp-privacy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-of-trust%2Fphp-privacy/lists"}