2017 © Pedro Peláez
 

library mcrypt

Simpel Static mcrypt helper object

image

kanti/mcrypt

Simpel Static mcrypt helper object

  • Tuesday, January 6, 2015
  • by Kanti
  • Repository
  • 1 Watchers
  • 0 Stars
  • 151 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

MCrypt helper object

https://github.com/Kanti/MCrypt/releases/latest https://packagist.org/packages/kanti/mcrypt, (*1)

install via Composer

command line:, (*2)

composer require kanti/mcrypt ~1

composer.json:, (*3)

"require":{
  "kanti/mcrypt": "~1"
}

how to use it

<?php
require_once "vendor/autoload.php";

$key = "Password";
$data = file_get_contents(__FILE__);
$options = array();

$jsonString = Kanti\MCrypt::encrypt($key, $data, $options);
$data = Kanti\MCrypt::decrypt($key, $jsonString);

var_dump($jsonString);
var_dump($data);

$options

option default
algorithm MCRYPT_RIJNDAEL_256
mode MCRYPT_MODE_CBC
iv php mcrypt_create_iv(mcrypt_get_iv_size($algorithm, $mode), MCRYPT_DEV_URANDOM)

Changlog

Version 1.3

Incompatible to Version 1.2 Data., (*4)

The Versions

06/01 2015

dev-master

9999999-dev

Simpel Static mcrypt helper object

  Sources   Download

MIT

The Requires

  • php >=5.3

 

19/12 2014

1.4

1.4.0.0

Simpel Static mcrypt helper object

  Sources   Download

MIT

The Requires

  • php >=5.3

 

19/12 2014

1.3

1.3.0.0

Simpel Static mcrypt helper object

  Sources   Download

MIT

The Requires

  • php >=5.3

 

18/12 2014

1.2

1.2.0.0

Simpel Static mcrypt helper object

  Sources   Download

MIT

The Requires

  • php >=5.3

 

18/12 2014

1.1

1.1.0.0

Simpel Static mcrypt helper object

  Sources   Download

MIT

The Requires

  • php >=5.3

 

18/12 2014

1.0

1.0.0.0

Simpel Static mcrypt helper object

  Sources   Download

MIT

The Requires

  • php >=5.3