JOhnlw009a
JOhnlw009a

Reputation: 1182

Can I decompile a WebAssembly module?

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

Answers (1)

Dan P
Dan P

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

Related Questions