Calculate Hash of a file