PHPackages                             smoice/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. smoice/phpseclib

ActiveLibrary[Security](/categories/security)

smoice/phpseclib
================

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

2.0.8(8y ago)03.9kMITPHPPHP &gt;=5.6

Since Jul 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/SMOICE/phpseclib)[ Packagist](https://packagist.org/packages/smoice/phpseclib)[ Docs](http://phpseclib.sourceforge.net)[ RSS](/packages/smoice-phpseclib/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (6)Versions (28)Used By (0)

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

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

[![Build Status](https://camo.githubusercontent.com/06da185225833db4cfc533930bd2be33755c627d247b7d2d653135ad5598e7d9/68747470733a2f2f7472617669732d63692e6f72672f7068707365636c69622f7068707365636c69622e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phpseclib/phpseclib)

MIT-licensed pure-PHP implementations of an arbitrary-precision integer arithmetic library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael, AES, Blowfish, Twofish, SSH-1, SSH-2, SFTP, and X.509

- [Browse Git](https://github.com/phpseclib/phpseclib)
- [Code Coverage Report](https://coverage.phpseclib.org/master/latest/)
- Support phpseclib development by [![Becoming a patron](https://camo.githubusercontent.com/ef99abada23b1f29b19e1c9652fec71ba89301e4629347600e2cf7c0d59094ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6265636f6d652d706174726f6e2d627269676874677265656e2e737667)](https://www.patreon.com/phpseclib)

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

[](#documentation)

- [Documentation / Manual](http://phpseclib.sourceforge.net/)
- [API Documentation](https://api.phpseclib.org/master/) (generated by Sami)

Branches
--------

[](#branches)

### master

[](#master)

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

### 2.0

[](#20)

- 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.7 as ZIP](http://sourceforge.net/projects/phpseclib/files/phpseclib1.0.7.zip/download)

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)

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. (Recommended) Run the Test Suite

    ```
    vendor/bin/phpunit
    ```
6. (Recommended) Check whether your code conforms to our Coding Standards by running

    ```
    vendor/bin/phing -f build/build.xml sniff
    ```
7. Send us a Pull Request

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 59.9% 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 ~73 days

Recently: every ~26 days

Total

27

Last Release

3160d ago

Major Versions

1.0.3 → 2.0.32016-08-18

1.0.4 → 2.0.42016-10-04

1.0.6 → 2.0.52017-05-08

1.0.7 → 2.0.62017-06-05

1.0.x-dev → 2.0.x-dev2017-09-10

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

2.0.0PHP &gt;=5.3.3

2.0.7PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/9db5eb055287528bc5a44ebd1fd11b16aa375710323cb387b132a5643595a6d4?d=identicon)[smoice](/maintainers/smoice)

---

Top Contributors

[![terrafrost](https://avatars.githubusercontent.com/u/214474?v=4)](https://github.com/terrafrost "terrafrost (1552 commits)")[![bantu](https://avatars.githubusercontent.com/u/189375?v=4)](https://github.com/bantu "bantu (869 commits)")[![phpsyscoder](https://avatars.githubusercontent.com/u/3170463?v=4)](https://github.com/phpsyscoder "phpsyscoder (53 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (24 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)")[![andrey012](https://avatars.githubusercontent.com/u/3939722?v=4)](https://github.com/andrey012 "andrey012 (7 commits)")[![paragonie-scott](https://avatars.githubusercontent.com/u/11591518?v=4)](https://github.com/paragonie-scott "paragonie-scott (7 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (6 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)")[![vlajos](https://avatars.githubusercontent.com/u/3994645?v=4)](https://github.com/vlajos "vlajos (3 commits)")[![lukas-w](https://avatars.githubusercontent.com/u/2879917?v=4)](https://github.com/lukas-w "lukas-w (3 commits)")[![Gemorroj](https://avatars.githubusercontent.com/u/885731?v=4)](https://github.com/Gemorroj "Gemorroj (3 commits)")[![paragonie-security](https://avatars.githubusercontent.com/u/15914520?v=4)](https://github.com/paragonie-security "paragonie-security (3 commits)")[![mmcev106](https://avatars.githubusercontent.com/u/2627854?v=4)](https://github.com/mmcev106 "mmcev106 (2 commits)")[![angerits](https://avatars.githubusercontent.com/u/1536540?v=4)](https://github.com/angerits "angerits (2 commits)")[![mpscholten](https://avatars.githubusercontent.com/u/2072185?v=4)](https://github.com/mpscholten "mpscholten (2 commits)")[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (2 commits)")

---

Tags

securitycryptographysshencryptionblowfishcryptosignaturesigningrsaaessftpx509asn1BigIntegertwofish

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/smoice-phpseclib/health.svg)](https://phpackages.com/packages/smoice-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.4M214](/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)
