Skip to content

Commit cd248c0

Browse files
committed
Merge branch '2.0' of https://github.com/phpseclib/mcrypt_compat into 2.0
2 parents 1ed2db4 + e592450 commit cd248c0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ composer require phpseclib/mcrypt_compat
5555

5656
mcrypt_compat's `ncfb` implementation has some incompatibles with mcrypt's implementation where `mcrypt_generic` and `mdecrypt_generic` are concerned. The unit tests elaborate.
5757

58+
## Emulating older PHP versions
59+
60+
The mcrypt extension's behavior underwent changes as new versions of PHP were released. By default mcrypt_compat emulates the behavior of PHP 7.1 but if you need to emulate how mcrypt behaved in, say, PHP 5.3.0, you may do so by doing `define('PHPSECLIB_MCRYPT_TARGET_VERSION', '5.3.0');` before including vendor/autoload.php (if you're using this with Composer).
61+
5862
## Security contact information
5963

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"require": {
2525
"php": ">=5.6.1",
26-
"phpseclib/phpseclib": ">=3.0.13 <4.0.0"
26+
"phpseclib/phpseclib": ">=3.0.36 <4.0.0"
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "^5.7|^6.0|^9.4"

0 commit comments

Comments
 (0)