PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 350 All time: 6,406 This week: 1,093Up
Version License PHP version Categories  
encryption-bca 1.4GNU General Publi...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: 17
All time rank: 2740203 in Brazil Brazil
Week rank: 1541 Up114 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:350All time:6,406
 This week:0This week:1,093Up