2017 © Pedro Peláez
 

library crypt

PHP Crypt/Decrypt utility

image

izis/crypt

PHP Crypt/Decrypt utility

  • Wednesday, September 13, 2017
  • by iZis
  • Repository
  • 1 Watchers
  • 2 Stars
  • 157 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Crypt

Simple crypt/decypt utility, (*1)

Usage

use JDZ\Crypt\Crypt;
use JDZ\Crypt\CryptCipher;
use JDZ\Crypt\CryptKey;

$privateKey = md5('oiuoiupoiupo'.@$_SERVER['HTTP_USER_AGENT']);

$clean = 'Test value';

// encrypt
$key    = new CryptKey($privateKey, $privateKey);
$cipher = new CryptCipher();
$crypt  = new Crypt($cipher, $key);

$crypted = $crypt->encrypt($clean);

echo "\n";
echo 'Encrypt'."\n";
echo 'Clear value : '.$clean."\n";
echo 'Crypted value : '.$crypted."\n";

// decrypt
$key    = new CryptKey($privateKey, $privateKey);
$cipher = new CryptCipher();
$crypt  = new Crypt($cipher, $key);

$decrypted = $crypt->decrypt($crypted);

echo "\n";
echo 'Decrypt'."\n";
echo 'Crypted value : '.$crypted."\n";
echo 'Clear value : '.$decrypted."\n";

The Versions

13/09 2017

dev-master

9999999-dev http://joffreydemetz.com/izis/crypt/

PHP Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

crypt

13/09 2017

2.0.0

2.0.0.0 http://joffreydemetz.com/izis/crypt/

PHP Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

crypt

29/06 2017

1.3.0

1.3.0.0 http://joffreydemetz.com/izis/crypt/

PHP Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

crypt

24/03 2017

1.2.0

1.2.0.0 http://joffreydemetz.com/izis/crypt/

PHP Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

crypt

20/03 2017

1.1.0

1.1.0.0 http://joffreydemetz.com/izis/crypt/

PHP Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

crypt

09/03 2017

1.0.0

1.0.0.0 http://joffreydemetz.com/izis/crypt/

PHP Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

crypt