robrichards/xmlseclibs
xmlseclibs is a PHP library for XML Encryption and Signatures, offering safe-by-default verification, pinned keys, algorithm allowlists, RSA-OAEP/AES-GCM support, and low-level primitives for legacy XML security workflows.
PHP 8.0+ and phpseclib/phpseclib ~3.0 required; OpenSSL is optional. This is a beta — APIs and defaults may still change before 4.0.0 final.
RSA_SHA256_MGF1) supportedverifyDocument() — pinned key, algorithm allowlists, validated node setenableLegacyMode() for temporary pre-4.0 interop while migrating peersstripWhitespace; omit_uri for references without a URI; extensibility via protected members (#152)verify() always binds SignatureMethod to the supplied key; HMAC cannot be loaded from certs/PEMadd509Cert() URL fetch; EncryptedKey/RetrievalMethod depth caps; hash_equals for digests/HMACsetSignatureId(); clearer throws when signature context is missingmakeAsnSegment()Prefer verifyDocument() with a pinned key. Use enableLegacyMode() only while updating peers — it restores DOCTYPE-on-verify, XPath transforms, and RSA-1.5; it does not undo algorithm/key binding, uniform decrypt errors, or decrypted-XML DOCTYPE rejection. Prefer RSA-OAEP and AES-GCM for new deployments.
Full detail: CHANGELOG.txt (4.0.0-beta2) and the “Breaking changes (3.1 → 4.0)” section in README.md.
PHP 8.0+ and phpseclib/phpseclib ~3.0 required; OpenSSL is optional.
RSA_SHA256_MGF1) supportedverifyDocument() — pinned key, algorithm allowlists, validated node setenableLegacyMode() for temporary pre-4.0 interop while migrating peersstripWhitespace; omit_uri for references without a URI; extensibility via protected members (#152)verify() always binds SignatureMethod to the supplied key; HMAC cannot be loaded from certs/PEMadd509Cert() URL fetch; EncryptedKey/RetrievalMethod depth caps; hash_equals for digests/HMACsetSignatureId(); clearer throws when signature context is missingmakeAsnSegment()Prefer verifyDocument() with a pinned key. Use enableLegacyMode() only while updating peers — it restores DOCTYPE-on-verify, XPath transforms, and RSA-1.5; it does not undo algorithm/key binding, uniform decrypt errors, or decrypted-XML DOCTYPE rejection. Prefer RSA-OAEP and AES-GCM for new deployments.
Full detail: CHANGELOG.txt (4.0.0) and the “Breaking changes (3.1 → 4.0)” section in README.md.
Full Changelog: https://github.com/robrichards/xmlseclibs/compare/3.1.5...4.0.0
Validate AES-GCM Authentication Tag
fix canonicalization error
Removes BC breaking change
Add tab to list of whitespace values to remove from cert loadKey should check return value for openssl_get_privatekey Switch to GitHub actions Support OAEP (from unreleased 3.1.1)
Add support for AES-GCM encryption Minor improvements and bug fixes
Security Release for CVE-2019-3465
Security release
Backports changes from 3.0 branch. This will be the last supported release from 2.x branch
Add PHP 7.3 support
Mainly security related release. See Changelog for more details
How can I help you explore Laravel packages today?