I created a Blazor WebAssembly with code that I want to obfuscate. The tool obfuscar works well but when I replace the original dll with the obfuscated one, my website cannot be loaded. The dev tools show the following errors:
- Failed to find a valid digest in the 'integrity' attribute for resource 'https://[...].dll' with computed SHA-256 integrity '[...]'. The resource has been blocked.
- Unknown error occurred while trying to verify integrity.
- Error: Failed to start platform. Reason: TypeError: Failed to fetch at St (blazor.webassembly.js:1)
- Uncaught (in promise) TypeError: Failed to fetch at service-worker.js:22 at async onInstall (service-worker.js:22)
This even happens when I set all obfuscation attributes to false, e. g. <Var name="RenameFields" value="false" />
- Can obfuscar be used with Blazor WebAssembly and if so, how? (Is this even a problem with Blazor wasm?)
- If obfuscar cannot be used, is there a (free) obfuscation tool, I could use?
Many thanks
Philipp