> On Jan 12, 2015, at 5:13 AM, rahul deshpande <[email protected]> 
> wrote:
> 
> I wanted to deploy the node js code as part of standalone installation.
> I do not want anyone one to read my code.
> 
> What are option available to avoid this? 
> Do I need to encrypt the code or should I turn it in to executable?

Fundamentally, you have a problem in that you can't make it impossible, only 
hard to decode.

If you encrypt, you hand an encrypted blob to the user, and the key to decrypt 
it so it can run. You can make it annoying, but not actually prevent decryption.

To make an executable, the javascript is merely embedded.

I'd ask what you're actually defending against: Some combination of trivial 
obfuscation like uglifyjs or google closure compiler may be your best bet, plus 
a banner on each file that reads "Copyright (C) Your Name, All Rights Reserved. 
Distribution without license is not permitted". The legal barrier to re-using 
parts of your software is likely the best way to prevent copying.

Now if you're trying to protect a proprietary algorithm where revealing it 
would be disastrous to your business, things get more interesting, but 
fundamentally has the same problems.

Aria

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/C82D2531-6227-47FC-84C6-946174A968C4%40nbtsc.org.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to