Calculate Hash from String or File