shaCrypt

Package:
shaCrypt
Summary:
Encrypt and decrypt data using SHA1 hashes of keys
Groups:
Cryptography, PHP 5
Author:
Mark Holtzhausen
Description:
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.


Powered by Gewgley