Login   Register  
PHP Classes
elePHPant
Icontem

Encryption Class BCA: Encrypt and decrypt data using Rijndael 256 cipher

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 (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-05-16 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 332 This week: 1All time: 6,376 This week: 1,608Up
Version License PHP version Categories  
encryption-bca 1.4GNU General Public Lice...5.0PHP 5, Cryptography
Description Author  

This class can encrypt and decrypt data using Rijndael 256 cipher.

It can take a given data string and encrypts it using a given secret key. Some characters are switched to obfuscate the result. The encrypted result is returned encoded with base64 algorithm.

The class can also do the opposite, i.e. decrypt a previously encrypted data string with the same class using the same secret key.

In Portuguese:

Encryption Class usa MCRYPT RIJNDAEL 256 é MODE ECB com chave pessoal para criptografia e descriptografia de texto em base64.

Depois da criptografia, a classe Encryption usa uma função para inverte os caracteres da criptografia tornando-a mais segura.

A função privado inverseEncryption() da classe, inverte os caracteres com strrev() depois divide em 3 variáveis ABC, é monta em ordem BCA.

A função privado reverseEncryption() da classe, remonta os caracteres para a descriptografia.

Picture of Gabriel Almeida
Name: Gabriel Almeida <contact>
Classes: 2 packages by
Country: Brazil Brazil
Age: 16
All time rank: 2732206 in Brazil Brazil
Week rank: 1201 Up106 in Brazil Brazil Up

  Files folder image Files  
File Role Description
Plain text file Encryption.php Class Class source of functions to encrypt
Accessible without login Plain text file example.php Example Example class to use Encryption

 Version Control Unique User Downloads Download Rankings  
 0%Total:332All time:6,376
 This week:1This week:1,608Up