Joshua Paine
unread,Nov 11, 2013, 10:43:09 AM11/11/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to he...@googlegroups.com
You mean your application written in JavaScript running on Helma? It
looks like it should be possible to get Rhino to compile the JavaScript
to Java classes, so this is probably possible in some way, but I don't
think Helma's meant to work this way. It's also suspect as a goal, not
from open source principles but just from, "Wait, what exactly are you
doing here?"
In a typical Helma app deployment you control the server(s) that the app
is running on. Users over the web can't see your Helma app code and with
little effort you can prevent them even from knowing whether you wrote
the app in Helma or PHP or Rails or whatever. (If users over the web can
see your Helma app code, you're definitely doing it wrong.)
If you're talking about delivering a binary to your customers so they
can run their own copy of your Helma app on their own web servers, you
should be realistic about the level of protection compilation would give
you. Java bytecode is easily decompiled to at least an approximation of
the source, and even in the abscence of original variable names, any
special sauce logic code be picked out without too much trouble. Trying
to protect passwords this way is Right Out. You might as well base64
encode the password and name the variable notThePassword for all the
protection you'd get.
-Joshua