Verify a file in the browser by calculating its hash and comparing it to an expected signature value you provide.