Is there a way to decode .wasm WebAssembly files and either understand it or convert it to javascript?
for example I have this script and I would like to know how to decode it
Is there a way to decode .wasm WebAssembly files and either understand it or convert it to javascript?
for example I have this script and I would like to know how to decode it
Share asked May 20, 2020 at 2:37 LucLuc 84313 silver badges23 bronze badges 2- Does this answer your question? How to decode a .wasm code? Is it possible? – Zachary Haber Commented May 20, 2020 at 2:58
- @ZacharyHaber not as much as i would like – Luc Commented May 20, 2020 at 3:23
1 Answer
Reset to default 4There are a couple of different ways to decode a wasm file. The first, and simplest, is wasm2wat from the WebAssembly Binary Toolkit. This simply takes a binary wasm file and converts it into a human-readable text form (WAT). However, wasm is a pact and relatively low level binary format, and as a result, much of the information in the original code is lost. As a result, depiled WAT files may not be that easy to read.
More recently, the Chrome team launched wasm-depile, a tool that attempts to create a more readable depiled output using a pseudo language that is quite readable (for JavaScript developers).
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744857309a4597485.html
评论列表(0条)