PHP Classes
elePHPant
Icontem

Anti_Mcrypt: Encrypt and decrypt data using mcrypt

Recommend this page to a friend!
  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 (7 years ago) RSS 2.0 feedStarStarStar 53%Total: 1,318 All time: 2,828 This week: 1,068Up
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
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%2
Total:1,318
This week:0
All time:2,828
This week:1,068Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1747
 
thank you for your script it helps me
7 years ago (bossboss007)
52%StarStarStar