Login   Register  
PHP Classes
elePHPant
Icontem

Anti_Mcrypt: Encrypt and decrypt data using mcrypt

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 (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-04-29 (5 years ago) RSS 2.0 feedStarStarStar 48%Total: 1,228 This week: 1All time: 2,885 This week: 1,164Up
Version License PHP version Categories  
mcrypt 1.1Public Domain5.0PHP 5, Cryptography
Description Author  

This class can be used to encrypt and decrypt data using mcrypt.

It takes a given key to encrypt data and checks if it is within the allowed length range.

The key is padded salt string if necessary to make sure that the actual encryption key always has the maximum length.

The class uses the key to either encrypt or decrypt data with PHP mcrypt encryption functions.

Innovation Award  
PHP Programming Innovation award nominee
March 2009
Number 10
Data protection by using encryption may often be broken when the encryption keys are weak.

Usually the problem is that either the keys are well known words found in dictionaries, or are simple combination of dictionary words with simple numbers or other words also found in dictionaries.

This class provides a simple solution to improve security of encrypted data by appending an hard to guess hash data to the key, so the actual encryption key is never smaller than a given limit length.

Manuel Lemos
Picture of Christian
Name: Christian <contact>
Classes: 4 packages by
Country: Germany Germany
Age: 32
All time rank: 133189 in Germany Germany
Week rank: 932 Up39 in Germany Germany Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imageAnti (2 files, 1 directory)
Accessible without login Plain text file example.php Example example usage

  Files folder image Files  /  Anti  
File Role Description
Files folder imageMcrypt (1 file)
  Plain text file Exception.php Class basic exception for this "Anti" namespace
  Plain text file Mcrypt.php Class Anti_Mcrypt class

  Files folder image Files  /  Anti  /  Mcrypt  
File Role Description
  Plain text file Exception.php Class custom exception used

 Version Control Reuses Unique User Downloads Download Rankings  
 0%2Total:1,228All time:2,885
 This week:1This week:1,164Up
User Ratings User Comments (1)  
 All time
Utility:66%StarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:48%StarStarStar
Rank:1749
 
thank you for your script it helps me
5 years ago (bossboss007)
52%StarStarStar