Re: WASM reverse engineering protection

2021-04-14 Thread Shlomi Fish
Hi Mehaboob! On Wed, 14 Apr 2021 17:21:49 -0700 J Decker wrote: > If code can be run, it can be reverse engineered; just a matter of how much > work one wants to put into it. > If the code was compressed, and encrypted, then there'd still be a small > bit code that has the decrypt, which can be

Re: Beginner Needs Help on converting and calling a C function

2021-04-14 Thread HJ
I have not found the answer to life, the universe and everything yet... I created the hello.js based on Floh's code. I did one change in that I added the "-s WASM=0" to the emcc command line to only produce JS and not any WASM. (I assume that is ok for my goal.) I added hello.js to my MS Code

Re: WASM reverse engineering protection

2021-04-14 Thread J Decker
If code can be run, it can be reverse engineered; just a matter of how much work one wants to put into it. If the code was compressed, and encrypted, then there'd still be a small bit code that has the decrypt, which can be extracted to get the rest, etc. Remote checking is a better option;

Re: Beginner Needs Help on converting and calling a C function

2021-04-14 Thread HJ
Thank you both for the quick responses. Floh, I will try this today. Geoffrey, I have tried your Generate Javascript Using MATLAB Coder add-on in MATLAB, but ran into issues. I posted those issues on the conversation that is on that add-on's page. On Wednesday, April 14, 2021 at 5:13:16 AM

Re: Using custom libs .a files

2021-04-14 Thread 'Thomas Lively' via emscripten-discuss
Hi Mehaboob, No, Emscripten cannot compile native objects or archive files to WebAssembly. Perhaps what you saw was a reference to archive files containing WebAssembly objects produced by Emscripten? Thomas On Wed, Apr 14, 2021 at 12:45 Mehaboob kk wrote: > Hello All, > > I see that

Using custom libs .a files

2021-04-14 Thread Mehaboob kk
Hello All, I see that Emscripton allows to compile .a files to wasm. In order for this to work the .a file need to be originally compiled using gcc? if yes, any specific version to be compatible? Thanks, Mehaboob -- You received this message because you are subscribed to the Google Groups

WASM reverse engineering protection

2021-04-14 Thread Mehaboob kk
Hello All, Is there any technique to protect the WASM code from reverse engineering? I have a licensed software which need to be protected. I am worried that the reverse engineered code can be modified to bypass the license and compile it back again Any inputs please Thanks, Mehaboob --

Re: Using python literals for EM_CONFIG/--em-config

2021-04-14 Thread Floh
I'm not on Discord, just mention me in the ticket (floooh) and I'll be there ;) On Wednesday, 14 April 2021 at 18:45:57 UTC+2 s...@google.com wrote: > On Wed, Apr 14, 2021 at 2:44 AM Floh wrote: > >> > Is there some reason you don't want to add the emscripten directory to >> you PATH? Is

Re: Using python literals for EM_CONFIG/--em-config

2021-04-14 Thread 'Sam Clegg' via emscripten-discuss
On Wed, Apr 14, 2021 at 2:44 AM Floh wrote: > > Is there some reason you don't want to add the emscripten directory to > you PATH? Is that somehow worse than setting EM_CONFIG and then parsing it? > > Because there isn't a single "emscripten directory", but one emscripten > directory per

Re: Beginner Needs Help on converting and calling a C function

2021-04-14 Thread Geoffrey McVittie
Hello, You may want to look at: https://www.mathworks.com/matlabcentral/fileexchange/69973-generate-javascript-using-matlab-coder There is an update to be released soon that will resolve the issues shown in the discussion. The existing add-on should work so long as you install emscripten using

Re: Beginner Needs Help on converting and calling a C function

2021-04-14 Thread Floh
Hi, I quickly cobbled together a "simplest possible sample" for calling a C function from JS here: https://github.com/floooh/emsc-interop-demo This is running in the browser though and it's a bit quick'n'dirty, but it should get you started at least for your own experimentations. The

Re: Using python literals for EM_CONFIG/--em-config

2021-04-14 Thread Floh
> Is there some reason you don't want to add the emscripten directory to you PATH? Is that somehow worse than setting EM_CONFIG and then parsing it? Because there isn't a single "emscripten directory", but one emscripten directory per "workspace directory". I might cd to a different workspace

Re: Using python literals for EM_CONFIG/--em-config

2021-04-14 Thread 'Sam Clegg' via emscripten-discuss
On Tue, Apr 13, 2021 at 1:27 PM Floh wrote: > Yeah, I never used python literals in EM_CONFIG, misunderstanding on my > part :) > > About the other thing: > > > a) Use `which emcc` to find where emscripten is > > In my case, emcc is not in the path because this is a local installation > (via