get data hash function