PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 1,377 All time: 2,820 This week: 87Up
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: 41
All time rank: 133882 in Germany Germany
Week rank: 312 Up18 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%2
Total:1,377
This week:0
All time:2,820
This week:87Up
User Ratings User Comments (1)
 All time
Utility:70%StarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2655
 
thank you for your script it helps me
14 years ago (bossboss007)
52%StarStarStar