PHPackages                             cwsr/mcrypt-compat-speed-patch - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cwsr/mcrypt-compat-speed-patch

ActiveProject[Utility &amp; Helpers](/categories/utility)

cwsr/mcrypt-compat-speed-patch
==============================

0.1.2(10mo ago)2551↓25%MITPHPPHP &gt;=8.1CI passing

Since Jun 30Pushed 10mo agoCompare

[ Source](https://github.com/rcwsr/mcrypt-compat-speed-patch)[ Packagist](https://packagist.org/packages/cwsr/mcrypt-compat-speed-patch)[ RSS](/packages/cwsr-mcrypt-compat-speed-patch/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

mcrypt-compat-speed-patch for phpseclib &amp; mcrypt\_compat
============================================================

[](#mcrypt-compat-speed-patch-for-phpseclib--mcrypt_compat)

For the rare case that you are using the mcrypt extension at the same time as having phpseclib's mcrypt\_compat v1 installed.

mcrypt-compat calls phpseclib's Base.php which calls the mcrypt extension's `mcrypt_list_algorithms()`, which is noticeably slower than calling the polyfill's `phpseclib_mcrypt_list_algorithms()`.

See this issue for more details on this issue [phpseclib/mcrypt\_compat#43](https://github.com/phpseclib/mcrypt_compat/issues/43)

Usage
-----

[](#usage)

Install this package with Composer as a Nytris package:

```
$ composer require cwsr/mcrypt-compat-speed-patch
```

### Configuring platform boot config

[](#configuring-platform-boot-config)

Configure [Nytris platform](https://github.com/nytris/nytris) to use this package:

`nytris.config.php`:

```
