2017 © Pedro Peláez
 

library safenet-php

This tools provide you useful function to encrypt/decrypt string.

image

netkiller/safenet-php

This tools provide you useful function to encrypt/decrypt string.

  • Wednesday, September 2, 2015
  • by netkiller
  • Repository
  • 4 Watchers
  • 13 Stars
  • 0 Installations
  • C
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

safenet-php

SafeNet for PHP - http://www.safenet-inc.com/, (*1)

Installation

 # yum install -y libcurl-devel

 # git clone https://github.com/netkiller/safenet-php.git
 # cd safenet-php
 # /srv/php/bin/phpize
 # ./configure --with-php-config=/srv/php/bin/php-config
 # make
 # make install

 # cat > /srv/php/etc/conf.d/safenet.ini <<PHP
 extension=safenet.so
 [SafeNet]
 safenet.url=http://175.145.40.55/safe/interface
 safenet.key=Web01-key
 safenet.timeout=10
 PHP

Test

# /srv/php/bin/php -m | grep safenet
safenet

php -r "echo safenet_encrypt('helloworld');"
php -r "echo safenet_decrypt(safenet_encrypt('helloworld'));"

Code Example:

<?php
echo safenet_encrypt('helloworld');
echo safenet_decrypt(safenet_encrypt('helloworld'));

The Versions

02/09 2015

dev-master

9999999-dev http://netkiller.github.io

This tools provide you useful function to encrypt/decrypt string.

  Sources   Download

CC 3.0

The Requires

  • php >=5.5.0

 

by Neo Chen

safenet