PHP Classes
elePHPant
Icontem

Cifrador: Encrypt and decrypt data with mcrypt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2015-02-23 (11 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 374 All time: 6,307 This week: 1,152Up
Version License PHP version Categories  
cifrador 0.1GNU General Publi...4Cryptography
Description Author  

This class can encrypt and decrypt data with mcrypt.

It takes a string of data and encrypts it using Rijndael 256 algorithm. The resulting data is returned encoded with base 64 algorithm.

The class can also do the opposite, i.e. decode previously encrypted data encoded with base64 algorithm and decrypts the result to return the original data.

Picture of Vladimir Zurita
Name: Vladimir Zurita <contact>
Classes: 3 packages by
Country: Chile Chile
Age: 42
All time rank: 22027 in Chile Chile
Week rank: 1611 Up3 in Chile Chile Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Details  

Cifrador

Encrypt and decrypt strings using AES

Usage

<?php
$Cifrador = new Cifrador();

//Encrypt text
$texto_cifrado = $Cifrador->cifrar("Este texto serĂ¡ cifrado", "m1p4ssw0rd");
echo $texto_cifrado;

//Decrypt text
$texto = $Cifrador->descifrar($texto_cifrado, "m1p4ssw0rd");
echo $texto;
?>

  Files folder image Files  
File Role Description
Plain text file Cifrador.php Class Rebuild
Plain text file cifrador.php Class Main class
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file VERSION Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 80%Total:374All time:6,307
 This week:0This week:1,152Up