PHP Classes

PHP Rijndael OpenSSL: Encrypt and decrypt data using Rijndael algorithm

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 257 All time: 7,840 This week: 54Up
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

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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:257
This week:0
All time:7,840
This week:54Up