2017 © Pedro Peláez
 

library crypt

Simple Crypt/Decrypt utility

image

jdz/crypt

Simple Crypt/Decrypt utility

  • Wednesday, May 30, 2018
  • by jdz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 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

30/05 2018

dev-master

9999999-dev https://github.com/joffreydemetz/crypt/

Simple Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

crypt

30/05 2018

2.0.1

2.0.1.0 https://github.com/joffreydemetz/crypt/

Simple Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

crypt

13/05 2018

2.0.0

2.0.0.0 https://github.com/joffreydemetz/crypt/

Simple Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

crypt

22/01 2018

1.2.0

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

Simple Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php >=5.6

 

crypt

03/12 2017

1.1.0

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

Simple Crypt/Decrypt utility

  Sources   Download

MIT

The Requires

  • php >=5.6

 

crypt