PHP Classes

shaCrypt: Encrypt and decrypt data using SHA1 hashes of keys

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 53%Total: 925 All time: 3,858 This week: 62Up
Version License PHP version Categories
shacrypt 1.1Freeware4.2PHP 5, Cryptography
Description 

Author

This class can be used to encrypt and decrypt data using SHA1 hashes of keys.

It takes a string of data and applies several functions to scramble the data. Then it uses an SHA1 has of the key to encrypt the scrambled data by using the XOR function.

The class can also do the opposite, i.e. apply the SHA1 hash of the key to decrypt the encrypted data. Then it unscrambles the data using functions that invert the result of the original data scrambling.

Picture of Mark Holtzhausen
Name: Mark Holtzhausen <contact>
Classes: 2 packages by
Country: South Africa South Africa

Details

To use this class, include the shaCrypt.php file. For encryption $cryptString=shaCrypt::encode([string],[pass],[boolean:return as base64 encoded]); For decryption $string=shaCrypt::encode([CryptString],[pass],[boolean:first base64 decode]);

  Files folder image Files (2)  
File Role Description
Plain text file shaCrypt.class.php Class shaCrypt Class
Accessible without login Plain text file Readme.txt Doc. Usage Instructions

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 Unique User Downloads Download Rankings  
 0%
Total:925
This week:0
All time:3,858
This week:62Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2289