Hash.php
Wrapper around hash() and hash_hmac() functions supporting truncated hashes such as sha256-96. Any hash algorithm returned by hash_algos() (and truncated versions thereof) are supported.
If setKey() is called, hash() will return the HMAC as opposed to the hash.
Here's a short example of how to use this library: