webassembly and wasm

75 views
Skip to first unread message

Alessio Mochi

unread,
Oct 27, 2021, 12:20:45 PM10/27/21
to emscripten-discuss
Hello,
Can execute a file wasm directly on the server side 
avoiding downloading locally? I would like to protect my code inside wasm.

Thanks in advance. 

Shlomi Fish

unread,
Oct 28, 2021, 3:35:50 AM10/28/21
to Alessio Mochi, emscripte...@googlegroups.com
Hi Alessio!

On Wed, 27 Oct 2021 09:20:45 -0700 (PDT)
Alessio Mochi <ale2...@gmail.com> wrote:

> Hello,
> Can execute a file wasm directly on the server side
> avoiding downloading locally? I would like to protect my code inside wasm.
>

You can try using server-side node.js:
https://duckduckgo.com/?q=node.js+wasm&atb=v140-1&ia=web . Note that you
might as well compile C/C++/etc. to native machine code and run the
*.so files on the server. Also see:

https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#how-do-i-hideobscureencrypt-my-source-code-to-prevent-end-users-from-learning-how-it-works

> Thanks in advance.
>



--

Shlomi Fish https://www.shlomifish.org/
The Case for File Swapping - https://shlom.in/file-swap

The Bajoran scholars have positively identified Benjamin Sisko as The Emissary.
They also positively identified the NSA headquarters as The Dungeon.
https://www.shlomifish.org/humour/bits/facts/NSA/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

Alessio Mochi

unread,
Oct 30, 2021, 8:59:01 AM10/30/21
to emscripten-discuss
how can protect my emscripten application from reuse?

Shlomi Fish

unread,
Oct 30, 2021, 10:27:01 AM10/30/21
to Alessio Mochi, emscripte...@googlegroups.com
Hi Alessio!

On Sat, 30 Oct 2021 05:59:01 -0700 (PDT)
Alessio Mochi <ale2...@gmail.com> wrote:

> how can protect my emscripten application from reuse?
>

How wasn't I clear?

> Il giorno giovedì 28 ottobre 2021 alle 09:35:50 UTC+2 Shlomi Fish ha
> scritto:
>
> > Hi Alessio!
> >
> > On Wed, 27 Oct 2021 09:20:45 -0700 (PDT)
> > Alessio Mochi <ale2...@gmail.com> wrote:
> >
> > > Hello,
> > > Can execute a file wasm directly on the server side
> > > avoiding downloading locally? I would like to protect my code inside
> > wasm.
> > >
> >
> > You can try using server-side node.js:
> > https://duckduckgo.com/?q=node.js+wasm&atb=v140-1&ia=web . Note that you
> > might as well compile C/C++/etc. to native machine code and run the
> > *.so files on the server. Also see:
> >
> >
> > https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#how-do-i-hideobscureencrypt-my-source-code-to-prevent-end-users-from-learning-how-it-works
> >
> > > Thanks in advance.
> > >



--

Shlomi Fish https://www.shlomifish.org/
Chuck Norris/etc. Facts - https://www.shlomifish.org/humour/bits/facts/

Jack: Hi Sophie!
Sophie: Don’t “Hi, Sophie!” me.
Jack: Don’t “Don’t ‘Hi, Sophie!’ me” me!

Alessio Mochi

unread,
Oct 31, 2021, 6:17:14 AM10/31/21
to emscripten-discuss

how could i force the application to run only on registered hardware? I think I understand that from emscripten you cannot call the operating system

Floh

unread,
Nov 1, 2021, 9:42:44 AM11/1/21
to emscripten-discuss
Do you want to avoid reverse engineering, or just block unlicensed users from running the WASM?

The first is pretty much impossible if the code runs on the client, the second could be implemented with a client/server login handshake. But in any case, all code running on the client should be assumed "open range", WASM or not.

Soeren Balko

unread,
Nov 23, 2021, 6:30:37 PM11/23/21
to emscripten-discuss
You could try one of the homomorphic encryption frameworks as the ultimate DRM mechanism if you feel adventurous. Realistically, that's not (yet) going to be practical for any real-life computing workload.

So plain old copyright (if that's a thing in your country) is your friend. The fact that some code runs in-browser doesn't automatically hand it to the public domain.

Reply all
Reply to author
Forward
0 new messages