__construct()
__construct()
SHA1 Encoding Class
Purpose: Provides 160 bit hashing using The Secure Hash Algorithm developed at the National Institute of Standards and Technology. The 40 character SHA1 message hash is computationally infeasible to crack.
This class is a fallback for servers that are not running PHP greater than 4.3, or do not have the MHASH library.
This class is based on two scripts:
Marcus Campbell's PHP implementation (GNU license) http://www.tecknik.net/sha-1/
...which is based on Paul Johnston's JavaScript version (BSD license). http://pajhome.org.uk/
I encapsulated the functions and wrote one additional method to fix a hex conversion bug. - Rick Ellis