Finished hashing function