https://github.com/gasol/pecl-nacl
NaCl PHP Extension
https://github.com/gasol/pecl-nacl
Last synced: 8 months ago
JSON representation
NaCl PHP Extension
- Host: GitHub
- URL: https://github.com/gasol/pecl-nacl
- Owner: Gasol
- License: other
- Created: 2013-02-05T18:48:05.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-02-02T03:52:38.000Z (over 9 years ago)
- Last Synced: 2025-06-13T21:44:13.220Z (about 1 year ago)
- Language: C
- Homepage: https://nacl.cr.yp.to/
- Size: 52.7 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP NaCl
========
[](https://travis-ci.org/Gasol/pecl-nacl)
Intro
-----
This is a PHP interface to [NaCl](https://nacl.cr.yp.to/), not Google's NativeClient.
NaCl is a new easy-to-use high-speed software library for network communication, encryption, decryption, signatures, etc. NaCl's goal is to provide all of the core operations needed to build higher-level cryptographic tools.
Requirements
------------
* PHP 5.3.3 or later
* NaCl 20110221 with PIC support
Installation as PHP module
------------
### Install from source
Install
$ git clone git://github.com/Gasol/pecl-nacl
$ cd pecl-nacl
$ phpize
$ ./configure --with-nacl
$ make install
Configuration
Add nacl extension into your php.ini
extension=nacl.so
NaCl library installation (for development)
-----------------------
#### Mac
Homebrew
$ brew install nacl
#### FreeBSD
$ cd /usr/ports/security/nacl
$ make install clean
#### Build from source
$ wget http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2
$ tar jxvf nacl-20110221.tar.bz2
$ cd nacl-20110221
$ rm -rf crypto_onetimeauth/poly1305/amd64
$ sed -i -e "s/$/ -fPIC/" ${WRKSRC}/okcompilers/c
$ ./do
TODO
----
Support Debian (wheezy) and Ubuntu 12.04