hashfile debug logs and returns hexdigest