PHP Classes


Recommend this page to a friend!
  Classes of Antonio Leiva   PHP Rijndael OpenSSL   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Rijndael OpenSSL
Encrypt and decrypt data using Rijndael algorithm
Author: By
Last change:
Date: 6 years ago
Size: 455 bytes


Class file image Download


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);