Is there a way of protecting the wasm files from tampering?
I am trying to protect a piece of proprietary C++ code from being cracked. I would love to do a checksum of the wasm binary at runtime from within the wasm file but it seems like thats not possible because I can not access the buffer of the executable?
I can do it from JS but that is very easy to modify by a 3rd party actor.
Thanks
Software and gaming industries search for such solution for decades. But software and games are still pirated.
You can of course force the program to check own hash with hash, stored in web, but this also can be mitigated (easy or not that's another story). This method is used by software companies which sell subscriptions for software.