But what password are you talking about? Some kind of unique id / serial that 
ensures the code runs? Can't that be a generated number? What about people just 
wanting to close the source, but still distributed it freely?

-- 
Diogo Resende


On Friday, January 11, 2013 at 6:05 , Gregg Caines wrote:

> You shouldn't look to compilation to solve this problem, because compilation 
> is not encryption.  Even if it was compiled C, anyone who can open a 
> hexeditor can see your username and password in there.  I bet you could even 
> see it from notepad.
> 
> An encryption scheme won't be bulletproof either, because you've got to put 
> the decryption logic on the machine as well, or your app won't actually be 
> able to use the decrypted username/password.
> 
> Of course you could encrypt anyway; that's at least mildly harder than 
> reading plain text (but still pretty trivial to decrypt -- they just need to 
> console.log(decryptedPassword) before you use it in your code).
> 
> I think you've either got to trust your 3rd-party hosts, or stop using 
> 3rd-party hosts.  As with most scenarios, if someone malicious has full 
> access to your machine, there's not much you can do.
> 
> G
> 
> 
> 
> On Wednesday, January 9, 2013 2:31:55 AM UTC-8, Koti Kanna wrote:
> > 
> > Hi all,
> > 
> > 
> > I am using npm module imap to fetch emails. where it requires username and 
> > password to fetch mails. This mail client i am hosting on a third party 
> > machine. My worry is, if any body open this file they can actually see my 
> > user name and password. Is there any way to precompile this module into 
> > machine code?
> > 
> > 
> > Do you have any plans to support executables for nodejs Apps, before it 
> > touches version 1.0?
> > 
> > 
> > Thanks
> > Koti
> > 
> > 
> > P.S.: The one and only language right now i know is JavaScript.
> > 
> > 
> 
> 
> 
> 
> -- 
> 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] 
> (mailto:[email protected])
> To unsubscribe from this group, send email to
> [email protected] 
> (mailto:[email protected])
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
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

Reply via email to