PHP Classes

PHP Rijndael OpenSSL: Encrypt and decrypt data using Rijndael algorithm

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 256 All time: 7,847 This week: 571Up
Version License PHP version Categories
rijndaelopenssl 1.0.0The PHP License5PHP 5, Cryptography
Description 

Author

This class can encrypt and decrypt data using Rijndael algorithm.

It can encrypt and descrypt data with a given key and the Rijndael algorithm using the OpenSSL extension.

The class also implements the PBKDF1 with a given password and salt.

Picture of Antonio Leiva
  Performance   Level  
Name: Antonio Leiva <contact>
Classes: 2 packages by
Country: Spain Spain
Age: 53
All time rank: 3777100 in Spain Spain
Week rank: 416 Up14 in Spain Spain Up

Example

<?php
include 'RijndaelOpenSSL.php';

$original = 'This is a text to encrypt!';
$pass ='ThisIsMyPassword';

$rijndael = new RijndaelOpenSSL();

$encriptado = $rijndael->encrypt($original, $pass);
$desencriptado = $rijndael->decrypt($encriptado, $pass);

echo
'Encriptado:' . PHP_EOL . $encriptado . PHP_EOL;
echo
'Desencriptado:' . PHP_EOL. $desencriptado . PHP_EOL;


Details

RijndaelOpenSSL

Rijndael algorithm for PHP and .NET

This class encrypt a string with password.

The result is compatible with the .NET implementation of the Rijndael algorithm.

Example of usage

include 'RijndaelOpenSSL.php';

$original = 'This is a text to encrypt!';
$pass ='ThisIsMyPassword';

$rijndael = new RijndaelOpenSSL();
$encriptado = $rijndael->encrypt($original, $pass);
$desencriptado = $rijndael->decrypt($encriptado, $pass);

  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Plain text file RijndaelOpenSSL.php Class Class source
Accessible without login Plain text file test.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:256
This week:0
All time:7,847
This week:571Up