PHP Classes

shaCrypt: Encrypt and decrypt data using SHA1 hashes of keys

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 923 All time: 3,861 This week: 571Up
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
Age: 48
All time rank: 208814 in South Africa South Africa
Week rank: 411 Up4 in South Africa South Africa Up

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  
File Role Description
Plain text file shaCrypt.class.php Class shaCrypt Class
Accessible without login Plain text file Readme.txt Doc. Usage Instructions

 Version Control Unique User Downloads Download Rankings  
 0%
Total:923
This week:0
All time:3,861
This week:571Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2244