Secure distribution of NodeJS applications

后端 未结 6 998
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 03:21

What: Can NodeJS apps be distributed as binary? ie. you compile the .js app via V8 into its native binary, and distribute the binary to clients? (if you had

6条回答
  •  天涯浪人
    2020-11-28 03:42

    Yes you can create a binary format. V8 allows you to pre-compile JavaScript. Note that this might have a bunch of weird side-effects on assumptions made by node core.

    Distributing source code means clients can easily steal our solution and stop paying licensing fees.

    Just because you distribute the binary doesn't protect you againsts theft. They can still steal the binary code or disassemble it. This is protection through obscurity which is no protection at all.

    It's better to give them a thin client app that talks to your server and keep your server code secure by not giving it away.

提交回复
热议问题