I have found plenty of questions/aswers about using node.js to build a server and how the javascript (server side) code won't be accessible to people accessing the server via a browser as it is not client side javascript.
If I want to use that server on an iOS or Android device (actually running the server on the device), am I wrong to assume that the server side javascript will now be available to anyone using that device? I don't believe that node.js piles or otherwise hides the server side javascript.
If what I fear above is true, is there any way keep prying eyes away from the server side javascript on these devices?
Thanks very much for your help.
Dana
I have found plenty of questions/aswers about using node.js to build a server and how the javascript (server side) code won't be accessible to people accessing the server via a browser as it is not client side javascript.
If I want to use that server on an iOS or Android device (actually running the server on the device), am I wrong to assume that the server side javascript will now be available to anyone using that device? I don't believe that node.js piles or otherwise hides the server side javascript.
If what I fear above is true, is there any way keep prying eyes away from the server side javascript on these devices?
Thanks very much for your help.
Dana
Share asked May 10, 2015 at 21:27 danabailliedanabaillie 752 silver badges5 bronze badges 2- If want to hide the javacsript from the clients/devices, then why not have them access a Node.js server as you would normally do? Sounds strange to me that you want to put server-side logic on iOS or Android devices. Can you explain what motivates you to do so? – cYrixmorten Commented May 10, 2015 at 21:48
- Hi cYrixmorten, Yes, I can. We currently have a server that was built to present courses in a browser, but do all of the course logic on the server. The server decides what page to display next, what question to display next in assessments, scores assessments and posttests, etc. We now want to be able have someone take our courses on their iOS/Android devices, but also to be able to take them offline. That means having a small version of the server with logic on the device. – danabaillie Commented May 11, 2015 at 1:04
2 Answers
Reset to default 2As of today, it looks possible (yr 2015).
Check below site, which went open source recently:
http://jxcore.io/
You cannot hide node.js javascript files from access on the actual server device. Those files have to be readable to the node interpreter which means they are readable to anyone else. This is basically the same issue as Javascript files used in a browser. The files are visible on the puter in which they are running. Javascript is not a piled language so the source code is visible.
You could, of course, obscure them (minimize), but that isn't a form of security, just makes it a little more work for someone to see what your code does.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744947716a4602723.html
评论列表(0条)