computeDataHash function

Compute hash of data