PHP Classes

Anti_Mcrypt: Encrypt and decrypt data using mcrypt

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 1,378 All time: 2,821 This week: 455Up
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: 42
All time rank: 134182 in Germany Germany
Week rank: 215 Up10 in Germany Germany Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (4)  
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 (4)  /  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 (4)  /  Anti  /  Mcrypt  
File Role Description
  Plain text file Exception.php Class custom exception used

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 0%2
Total:1,378
This week:0
All time:2,821
This week:455Up
User Ratings User Comments (1)
 All time
Utility:70%StarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2719
 
thank you for your script it helps me
15 years ago (bossboss007)
52%StarStarStar