2017 © Pedro Peláez
 

library php-mcrypt256cbc

image

intrd/php-mcrypt256cbc

  • Monday, July 30, 2018
  • by intrd
  • Repository
  • 1 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

/**
 * php - Secure Encryption & Decryption Made Easy with PHP, MCrypt, Rijndael-256, and CBC
 * 
* @package php-mcrypt256CBC
* @version 1.0
* @category functions
* @author intrd - http://dann.com.br
* @see inspired by joshhartman http://www.warpconduit.net/2013/04/14/highly-secure-data-encryption-decryption-made-easy-with-php-mcrypt-rijndael-256-and-cbc/
* @copyright 2015 intrd
* @license http://creativecommons.org/licenses/by/4.0/
* @link https://github.com/intrd/php-mcrypt256CBC/
*/

System installation

apt-get update & apt-get upgrade
apt-get install php5-curl php5-sqlite php5-cli

apt-get install git
git clone https://github.com/intrd/php-mcrypt256CBC/

Usage sample

if (!defined('ENCRYPTION_KEY')) define('ENCRYPTION_KEY', "12345677378111147486847454344411"); //set your private key

$text="my test";
$text=mc_encrypt($text); //encrypt $text using defined privatekey
echo $text; //show encrypted text

$text=mc_decrypt($text); //decrypt $text using defined privatekey
echo $text; //show plaintext


The Versions

30/07 2018

dev-master

9999999-dev

  Sources   Download

19/05 2016

1.0.x-dev

1.0.9999999.9999999-dev http://github.com/intrd/php-mcrypt256cbc

PHP - Secure Encryption & Decryption Made Easy with PHP, MCrypt, Rijndael-256, and CBC

  Sources   Download

CC-BY-SA-4.0

The Requires

  • php >=5.3.0

 

php encryption rijndael mcrypt cbc 256bits