PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Antonio Leiva   PHP Rijndael OpenSSL   README.md   Download  
File: README.md
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
 

Contents

Class file image Download

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