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 59%Total: 921 All time: 3,862 This week: 122Up
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: 208714 in South Africa South Africa
Week rank: 683 Up5 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:921
This week:0
All time:3,862
This week:122Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1474