3.0.51

Latest release in branch 3.0
Released 10 days ago (April 10, 2026)

Software phpseclib
Branch 3.0
Status LTS
Supported
First official release version 3.0.0
First official release date 5 years ago (December 17, 2020)
Supported
PHP versions
PHP ≥ 5.6.1
Release notes https://github.com/phpseclib/phpseclib/releases/tag/3.0.51
Source code https://github.com/phpseclib/phpseclib/tree/3.0.51
Documentation https://phpseclib.com/docs/why
phpseclib 3.0 Releases View 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

Version Release date
3.0.51 10 days ago
(April 10, 2026)
3.0.50 1 month ago
(March 19, 2026)
3.0.49 2 months ago
(January 27, 2026)
3.0.48 4 months ago
(December 15, 2025)
3.0.47 6 months ago
(October 06, 2025)
3.0.46 9 months ago
(June 30, 2025)
3.0.45 9 months ago
(June 22, 2025)
3.0.44 10 months ago
(June 15, 2025)
3.0.43 1 year ago
(December 14, 2024)
3.0.42 1 year ago
(September 16, 2024)
3.0.41 1 year ago
(August 12, 2024)
3.0.40 1 year ago
(August 11, 2024)
3.0.39 1 year ago
(June 24, 2024)
3.0.38 1 year ago
(June 17, 2024)
3.0.37 2 years ago
(March 03, 2024)
3.0.36 2 years ago
(February 26, 2024)
3.0.35 2 years ago
(December 29, 2023)
3.0.34 2 years ago
(November 27, 2023)
3.0.33 2 years ago
(October 21, 2023)
3.0.23 2 years ago
(September 18, 2023)
3.0.22 2 years ago
(September 16, 2023)
3.0.21 2 years ago
(July 09, 2023)
3.0.20 2 years ago
(June 13, 2023)
3.0.19 3 years ago
(March 05, 2023)
3.0.18 3 years ago
(December 17, 2022)
3.0.17 3 years ago
(October 24, 2022)
3.0.16 3 years ago
(September 05, 2022)
3.0.15 3 years ago
(September 02, 2022)
3.0.14 4 years ago
(April 04, 2022)
3.0.13 4 years ago
(January 30, 2022)
3.0.12 4 years ago
(November 29, 2021)
3.0.11 4 years ago
(October 27, 2021)
3.0.10 4 years ago
(August 16, 2021)
3.0.9 4 years ago
(June 14, 2021)
3.0.8 5 years ago
(April 20, 2021)
3.0.7 5 years ago
(April 06, 2021)
3.0.6 5 years ago
(March 13, 2021)
3.0.5 5 years ago
(February 12, 2021)
3.0.4 5 years ago
(January 26, 2021)
3.0.3 5 years ago
(January 16, 2021)
3.0.2 5 years ago
(December 24, 2020)
3.0.1 5 years ago
(December 19, 2020)
3.0.0 5 years ago
(December 17, 2020)