Stable Release in branch 3.0 (LTS)
3.0.56
Released 02 Aug 2026
(6 days ago)
Softwarephpseclib
Version3.0 (LTS)
StatusLTS
Supported
Supported
PHP versions
PHP ≥ 5.6.1
Initial release3.0.0
17 Dec 2020
(5 years ago)
Latest release3.0.56
02 Aug 2026
(6 days ago)
Security supportYes
Release noteshttps://github.com/phpseclib/phpseclib/releases/tag/3.0.56
Source codehttps://github.com/phpseclib/phpseclib/tree/3.0.56
Documentationhttps://phpseclib.com/docs/why
phpseclib 3.0 (LTS) ReleasesView full list

What Is New in phpseclib 3.0

Category Key Changes
New Features PHP 8.0+ requirement, OpenSSH agent forwarding, Ed25519 support, ChaCha20 encryption
Improvements Faster prime generation, GCM mode support, better SSH key handling
Bug Fixes SSH packet handling, key parsing, Windows compatibility fixes
Security Side-channel attack prevention, constant-time algorithms
Deprecated RC4 cipher, old PHP version support, certain method signatures

Why did phpseclib 3.0 drop support for older PHP versions?

phpseclib 3.0 requires PHP 8.0 or higher. This move lets the library use modern PHP features like union types and attributes, which improve code quality and performance.

Dropping legacy support means cleaner code and fewer compatibility hacks. You'll need to upgrade your PHP environment if you're still on older versions.

What new cryptography features were added?

Version 3.0 introduces several modern crypto algorithms. Ed25519 support provides faster and more secure digital signatures compared to traditional algorithms.

ChaCha20 encryption and Poly1305 authentication offer high-performance alternatives to AES. GCM mode support enhances symmetric encryption capabilities for SSH and TLS implementations.

How does OpenSSH agent forwarding work?

The new OpenSSH agent forwarding feature allows SSH clients to use local SSH keys when connecting through intermediate servers. This eliminates the need to store private keys on jump hosts.

In practice, this means more secure SSH workflows since private keys stay on your local machine. The implementation follows the OpenSSH agent protocol specification closely.

What performance improvements were made?

Prime number generation saw significant speed boosts through optimized algorithms. This matters for Diffie-Hellman key exchange and RSA key generation operations.

SSH packet processing also got faster with reduced memory allocation overhead. These changes make sustained SSH connections and bulk data transfers more efficient.

What security enhancements were implemented?

The library now uses constant-time algorithms for cryptographic operations to prevent timing attacks. This is crucial for comparing authentication tokens and signature verification.

Side-channel resistant implementations help protect against information leakage through cache timing. Deprecated and weak ciphers like RC4 were completely removed from the codebase.

FAQ

Is phpseclib 3.0 backward compatible with 2.0?
No, it's a major breaking change. You'll need to update your code for PHP 8.0+ and address deprecated method removals.

Can I use Ed25519 keys for SSH connections?
Yes, 3.0 fully supports Ed25519 keys for both authentication and host key verification.

Does agent forwarding work on Windows?
Yes, but you'll need to run Pageant or the Windows OpenSSH agent for the key storage component.

Why was RC4 cipher removed?
RC4 is considered cryptographically weak and has been deprecated in security standards for years.

How much faster is prime generation?
Benchmarks show 2-3x improvement for common prime sizes used in SSH and TLS handshakes.

Releases In Branch 3.0 (LTS)

VersionRelease date
3.0.5602 Aug 2026
(6 days ago)
3.0.5514 Jun 2026
(1 month ago)
3.0.5414 Jun 2026
(1 month ago)
3.0.5309 Jun 2026
(1 month ago)
3.0.5227 Apr 2026
(3 months ago)
3.0.5110 Apr 2026
(3 months ago)
3.0.5019 Mar 2026
(4 months ago)
3.0.4927 Jan 2026
(6 months ago)
3.0.4815 Dec 2025
(7 months ago)
3.0.4706 Oct 2025
(10 months ago)
3.0.4630 Jun 2025
(1 year ago)
3.0.4522 Jun 2025
(1 year ago)
3.0.4415 Jun 2025
(1 year ago)
3.0.4314 Dec 2024
(1 year ago)
3.0.4216 Sep 2024
(1 year ago)
3.0.4112 Aug 2024
(1 year ago)
3.0.4011 Aug 2024
(1 year ago)
3.0.3924 Jun 2024
(2 years ago)
3.0.3817 Jun 2024
(2 years ago)
3.0.3703 Mar 2024
(2 years ago)
3.0.3626 Feb 2024
(2 years ago)
3.0.3529 Dec 2023
(2 years ago)
3.0.3427 Nov 2023
(2 years ago)
3.0.3321 Oct 2023
(2 years ago)
3.0.2318 Sep 2023
(2 years ago)
3.0.2216 Sep 2023
(2 years ago)
3.0.2109 Jul 2023
(3 years ago)
3.0.2013 Jun 2023
(3 years ago)
3.0.1905 Mar 2023
(3 years ago)
3.0.1817 Dec 2022
(3 years ago)
3.0.1724 Oct 2022
(3 years ago)
3.0.1605 Sep 2022
(3 years ago)
3.0.1502 Sep 2022
(3 years ago)
3.0.1404 Apr 2022
(4 years ago)
3.0.1330 Jan 2022
(4 years ago)
3.0.1229 Nov 2021
(4 years ago)
3.0.1127 Oct 2021
(4 years ago)
3.0.1016 Aug 2021
(4 years ago)
3.0.914 Jun 2021
(5 years ago)
3.0.820 Apr 2021
(5 years ago)
3.0.706 Apr 2021
(5 years ago)
3.0.613 Mar 2021
(5 years ago)
3.0.512 Feb 2021
(5 years ago)
3.0.426 Jan 2021
(5 years ago)
3.0.316 Jan 2021
(5 years ago)
3.0.224 Dec 2020
(5 years ago)
3.0.119 Dec 2020
(5 years ago)
3.0.017 Dec 2020
(5 years ago)