The alternative would be to sign the actual binary file using code signing (internally I assume that relies on a hash ).