PHP bindings for Crypto++
C++ PHP C Python
Failed to load latest commit information.
php-stubs added CMAC php stub Feb 5, 2015
src mac key refactoring Feb 7, 2015
tests mac key refactoring Feb 7, 2015
.gitignore modified gitignore paths Jul 26, 2015
.travis.yml fixed travis xdebug removal Jul 26, 2015
LICENSE updated README Jan 29, 2015
config.m4 can now set the path to the libcryptopp headers Jan 22, 2015 added CMAC mac algorithm Feb 5, 2015

PHP Crypto++ bindings

Provides an object-oriented API to use a wide variety of cryptographic algorithms based on the Crypto++ library. The API is not strictly identical to the original Crypto++ API and has been simplified to be usable by anyone that has not any knowledge in cryptography.

Build Status


  • PHP 5.3+
  • Crypto++ library
  • Python 2.7+ (make)

The Crypto++ library can be installed with one of the following commands, depending on your distribution:

  • Ubuntu: sudo apt-get install libcrypto++-dev
  • Debian: sudo apt-get install libcrypto++-dev
  • ArchLinux: sudo pacman -S crypto++
  • CentOS/RedHat: yum install cryptopp-devel


sudo make install

Now you can add the following line to your php.ini file:


Full documentation is not finalized yet. You can see the current version in the wiki.

See the PHP stubs available in the php-stubs directory, which may be also used in your IDE for code completion.



  • Symmetric encryption
  • Hash functions
  • MAC algorithms


  • Asymmetric cryptography
  • Key derivation functions


This project is authored and maintained by Stephen Berquet.


Licensed under the MIT License - see the LICENSE file for details