Hash functionality for request integrity check