Reputation: 1182
Is it possible to decompile a WebAssembly module like:
https://github.com/blinkcard/blinkcard-in-browser/blob/master/resources/basic/BlinkCardWasmSDK.wasm
Upvotes: 2
Views: 1534
Reputation: 924
You can, but at the momently only to C, with something like this: https://github.com/WebAssembly/wabt/tree/main/wasm2c
In the compilation process, a lot of the data that is to make source code, such as variable types or classes are stripped out, meaning reversing the process is very difficult.
While there potentially could be a tool to "translate" WebAssembly modules to different, higher level languages, it would not be anywhere near the actual source code that was compiled.
Source: Is it possible to decompile Web Assembly (wasm) files to a specific programming language?
Upvotes: 1