PHPackages                             cinexpert/phpseclib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. cinexpert/phpseclib

ActiveLibrary[Security](/categories/security)

cinexpert/phpseclib
===================

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

3.0.17(3y ago)03MITPHPPHP &gt;=5.6.1

Since Jul 7Pushed 3y agoCompare

[ Source](https://github.com/cinexpert/phpseclib)[ Packagist](https://packagist.org/packages/cinexpert/phpseclib)[ Docs](http://phpseclib.sourceforge.net)[ GitHub Sponsors](https://github.com/terrafrost)[ Patreon](https://www.patreon.com/phpseclib)[ RSS](/packages/cinexpert-phpseclib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (93)Used By (0)

phpseclib - PHP Secure Communications Library
=============================================

[](#phpseclib---php-secure-communications-library)

[![CI Status](https://github.com/phpseclib/phpseclib/actions/workflows/ci.yml/badge.svg?branch=master&event=push "CI Status")](https://github.com/phpseclib/phpseclib)

Supporting phpseclib
--------------------

[](#supporting-phpseclib)

- [Become a backer or sponsor on Patreon](https://www.patreon.com/phpseclib)
- [One-time donation via PayPal or crypto-currencies](http://sourceforge.net/donate/index.php?group_id=198487)
- [Subscribe to Tidelift](https://tidelift.com/subscription/pkg/packagist-phpseclib-phpseclib?utm_source=packagist-phpseclib-phpseclib&utm_medium=referral&utm_campaign=readme)

Introduction
------------

[](#introduction)

MIT-licensed pure-PHP implementations of the following:

SSH-2, SFTP, X.509, an arbitrary-precision integer arithmetic library, Ed25519 / Ed449 / Curve25519 / Curve449, ECDSA / ECDH (with support for 66 curves), RSA (PKCS#1 v2.2 compliant), DSA / DH, DES / 3DES / RC4 / Rijndael / AES / Blowfish / Twofish / Salsa20 / ChaCha20, GCM / Poly1305

- [Browse Git](https://github.com/phpseclib/phpseclib)

Documentation
-------------

[](#documentation)

- [Documentation / Manual](https://phpseclib.com/)
- [API Documentation](https://api.phpseclib.com/master/) (generated by Doctum)

Branches
--------

[](#branches)

### master

[](#master)

- Development Branch
- Unstable API
- Do not use in production

### 3.0

[](#30)

- Long term support (LTS) release
- Major expansion of cryptographic primitives
- Minimum PHP version: 5.6.1
- PSR-4 autoloading with namespace rooted at `\phpseclib3`
- Install via Composer: `composer require phpseclib/phpseclib:~3.0`

### 2.0

[](#20)

- Long term support (LTS) release
- Modernized version of 1.0
- Minimum PHP version: 5.3.3
- PSR-4 autoloading with namespace rooted at `\phpseclib`
- Install via Composer: `composer require phpseclib/phpseclib:~2.0`

### 1.0

[](#10)

- Long term support (LTS) release
- PHP4 compatible
- Composer compatible (PSR-0 autoloading)
- Install using Composer: `composer require phpseclib/phpseclib:~1.0`
- Install using PEAR: See [phpseclib PEAR Channel Documentation](http://phpseclib.sourceforge.net/pear.htm)
- [Download 1.0.20 as ZIP](http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.20.zip/download)

Security contact information
----------------------------

[](#security-contact-information)

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.

Support
-------

[](#support)

Need Support?

- [Checkout Questions and Answers on Stack Overflow](http://stackoverflow.com/questions/tagged/phpseclib)
- [Create a Support Ticket on GitHub](https://github.com/phpseclib/phpseclib/issues/new)
- [Browse the Support Forum](http://www.frostjedi.com/phpbb/viewforum.php?f=46) (no longer in use)

Special Thanks
--------------

[](#special-thanks)

Special Thanks to our $50+ sponsors!:

- Allan Simon
- [ChargeOver](https://chargeover.com/)

Contributing
------------

[](#contributing)

1. Fork the Project
2. Ensure you have Composer installed (see [Composer Download Instructions](https://getcomposer.org/download/))
3. Install Development Dependencies

    ```
    composer install
    ```
4. Create a Feature Branch
5. Run continuous integration checks:

    ```
    composer run-script all-quality-tools
    ```
6. Send us a Pull Request

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 74.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Recently: every ~6 days

Total

91

Last Release

1270d ago

Major Versions

2.0.36 → 3.0.132022-01-30

2.0.37 → 3.0.142022-04-04

2.0.38 → 3.0.152022-09-02

2.0.39 → 3.0.172022-10-24

1.0.x-dev → 3.0.x-dev2022-10-28

PHP version history (4 changes)0.3.0PHP &gt;=5.0.0

2.0.0PHP &gt;=5.3.3

2.0.8PHP &gt;=5.6.1

2.0.40PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d6584819dabfe835a6caa1826bf2716dee040714e2a769365afa84d68b144b9?d=identicon)[ppaulis](/maintainers/ppaulis)

---

Top Contributors

[![terrafrost](https://avatars.githubusercontent.com/u/214474?v=4)](https://github.com/terrafrost "terrafrost (3355 commits)")[![bantu](https://avatars.githubusercontent.com/u/189375?v=4)](https://github.com/bantu "bantu (884 commits)")[![phpsyscoder](https://avatars.githubusercontent.com/u/3170463?v=4)](https://github.com/phpsyscoder "phpsyscoder (53 commits)")[![jack-worman](https://avatars.githubusercontent.com/u/66142217?v=4)](https://github.com/jack-worman "jack-worman (46 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (29 commits)")[![kylekatarnls](https://avatars.githubusercontent.com/u/5966783?v=4)](https://github.com/kylekatarnls "kylekatarnls (12 commits)")[![cweagans](https://avatars.githubusercontent.com/u/101590?v=4)](https://github.com/cweagans "cweagans (11 commits)")[![montdidier](https://avatars.githubusercontent.com/u/1673628?v=4)](https://github.com/montdidier "montdidier (9 commits)")[![williamdes](https://avatars.githubusercontent.com/u/7784660?v=4)](https://github.com/williamdes "williamdes (7 commits)")[![paragonie-scott](https://avatars.githubusercontent.com/u/11591518?v=4)](https://github.com/paragonie-scott "paragonie-scott (7 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (7 commits)")[![andrey012](https://avatars.githubusercontent.com/u/3939722?v=4)](https://github.com/andrey012 "andrey012 (7 commits)")[![eternalharvest](https://avatars.githubusercontent.com/u/1128403?v=4)](https://github.com/eternalharvest "eternalharvest (6 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (6 commits)")[![CallMeJon90](https://avatars.githubusercontent.com/u/35259732?v=4)](https://github.com/CallMeJon90 "CallMeJon90 (5 commits)")[![metaclassing](https://avatars.githubusercontent.com/u/1027733?v=4)](https://github.com/metaclassing "metaclassing (5 commits)")[![Joey3000](https://avatars.githubusercontent.com/u/3662335?v=4)](https://github.com/Joey3000 "Joey3000 (5 commits)")[![johnsterling](https://avatars.githubusercontent.com/u/2278029?v=4)](https://github.com/johnsterling "johnsterling (4 commits)")[![pcf0](https://avatars.githubusercontent.com/u/32403010?v=4)](https://github.com/pcf0 "pcf0 (4 commits)")[![lukas-w](https://avatars.githubusercontent.com/u/2879917?v=4)](https://github.com/lukas-w "lukas-w (3 commits)")

---

Tags

securitycryptographysshencryptionblowfishcryptosignaturesigningrsaaessftpx509asn1BigIntegertwofish

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cinexpert-phpseclib/health.svg)

```
[![Health](https://phpackages.com/badges/cinexpert-phpseclib/health.svg)](https://phpackages.com/packages/cinexpert-phpseclib)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M213](/packages/defuse-php-encryption)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5275.0k30](/packages/ionux-phactor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
