PHP bindings for Crypto++
C++ PHP C Python
Permalink
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
README.md updated README Jan 29, 2015
config.m4 can now set the path to the libcryptopp headers Jan 22, 2015
config.py added CMAC mac algorithm Feb 5, 2015

README.md

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

Requirements

  • 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

Installation

phpize
./configure
make
sudo make install

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

    extension=cryptopp.so

Documentation

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.

Status

Available

  • Symmetric encryption
  • Hash functions
  • MAC algorithms

Comming

  • Asymmetric cryptography
  • Key derivation functions

Author

This project is authored and maintained by Stephen Berquet.

License

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