On Mon, Feb 27, 2012 at 11:00 AM, Jeremy Rudd <[email protected]>wrote:
> > On Feb 26, 8:09 pm, mscdex <[email protected]> wrote: > > It'd be neat to be able to have specific modules' (bundled in the node > > executable) exported functions not show their source code > > when .toString()'ed, kind of like how native C++ functions show > > "[native code]" when .toString()'ed. > > Exactly. I mean which application framework on earth allows you to > "view source" from the BINARIES?! (except HTML/JS!) The toString() > function should just return a blank string from binary NodeJS apps. > This would be really useful. > > There is no such thing as a javascript binary. The code included with node is stored in string format in the node executable. In my opinion, this is not a Node problem to solve. Obfuscation/source code hiding is an opportunity for a third party to make a native module to encrypt/decrypt source files. Because of the nature of javascript, there is no way to properly protect your source code. Even if toString returns blank, you'll be able to harvest the source code from the binary itself. And if you encrypt it, you'll have to somehow provide the key to decrypt it so it can be run anyway. With java and .net, the decompilation tools may not give you code that always compiles, but it almost always gives you enough information to add or replace the license checking code functions and classes by replacing the appropriate dll's /class files with your own ones. If you need native code, do your coding in c++. Most of us are standing on the shoulders of giants. This is why node is so great. But yet, we are selling software touting features that are really a gift from the Node community, and that we got for mostly free. Try getting the same sort of quality in a web/network framework for free in the C++ world. You wont see many. The reason is simple, openness. You pay for Node's goodness by being trapped in openness. Same as with ruby, perl, php and the like. Bitching cause the Node creators were generous enough to share their work with you, but not cheap enough to lock it down is ludicrous. -Regards Tim De Lange -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
