PHP 5.x/7.x polyfill for mcrypt extension.
Branch: master
Clone or download
Latest commit b01e7be Feb 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Merge branch '1.0' Feb 15, 2019
tests Merge branch '1.0' Feb 15, 2019
.gitattributes initial commit Apr 3, 2016
.gitignore initial commit Apr 3, 2016
.styleci.yml improve and complete the unit testing Jan 4, 2017
.travis.yml Merge branch '1.0' Feb 10, 2019
AUTHORS initial commit Apr 3, 2016
LICENSE initial commit Apr 3, 2016
README.md cfb mode now works with phpseclib 2.0 Apr 15, 2018
composer.json Merge branch 'master' of https://github.com/phpseclib/mcrypt_compat May 20, 2018
phpunit.xml.dist

README.md

mcrypt_compat

Build Status

PHP 5.x/7.x polyfill for mcrypt extension.

Installation

With Composer:

composer require phpseclib/mcrypt_compat

Supported algorithms

  • rijndael-128
  • rijndael-192
  • rijndael-256
  • des
  • blowfish
  • rc2
  • tripledes
  • arcfour

Unsupported algorithms

  • cast-128
  • gost
  • cast-256
  • loki97
  • saferplus
  • wake
  • blowfish-compat
  • serpent
  • xtea
  • enigma

Supported modes

  • cbc
  • ncfb
  • cfb
  • ctr
  • ecb
  • nofb
  • stream

Although nofb is supported ofb is not. Further, mcrypt_compat's ncfb implementation has some incompatibles with mcrypt's implementation where mcrypt_generic and mdecrypt_generic are concerned. The unit tests elaborate.