nipil / chacha20
A pure-php implementation of ChaCha20 for both 32-bit and 64 bits
Installs: 55
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nipil/chacha20
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: ^6.0
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2025-09-14 06:32:54 UTC
README
A pure-php implementation of ChaCha20, fully tested on both 32-bit php and 64 bits.
Install
Tested on Ubuntu 16.04 LTS (with php 7.0)
basic system components :
sudo apt-get install composer
phpunit asks for following system additional components :
sudo apt-get install php-xml php-mbstring zip
coveralls.io asks for following system additional components :
sudo apt-get install php-curl
additionnal package if you want to run code coverage locally :
sudo apt-get install php-xdebug
Install with composer (dev)
composer install
Install with composer (production)
composer install --no-dev
Run tests with composer
composer exec -- phpunit
Run tests with composer with local code coverage (requires xdebug, see above)
mkdir -p build/html
composer exec -- phpunit --coverage-text --coverage-html build/html/