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.
- 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
phpize
./configure
make
sudo make installNow you can add the following line to your php.ini file:
extension=cryptopp.soFull 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.
Available
- Symmetric encryption
- Hash functions
- MAC algorithms
Comming
- 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