# phpseclib 4.0

A new major version of phpseclib, a pure-PHP library for SSH-2, SFTP, X.509, RSA, AES and more, with new PFX and CMS support.

X509 is split into separate X509, CSR, CRL and SPKAC classes. SSH2 and SFTP now throw exceptions instead of returning false. It needs PHP 8.1 or later, and the namespace is now phpseclib4.

- Made by: [phpseclib](https://github.com/phpseclib), [Jim Wigginton](https://github.com/terrafrost)
- Shipped: 23/08/2026
- Date from: [release](https://github.com/phpseclib/phpseclib/releases/tag/4.0.0)
- Source: [github.com/phpseclib/phpseclib](https://github.com/phpseclib/phpseclib)
- Docs: [phpseclib.com](https://phpseclib.com/)
- Install: `composer require phpseclib/phpseclib`
- Licence: MIT
- Stack: plain PHP
- Checked: 21/10/2026
- Added: 22/10/2026

See more at [phplives.dev](https://phplives.dev)
