> Given my relative naivete with html/js, my question is how to protect
> the content?  Can an app or app functions of a TW be compiled?  Are
> there other ways to encrypt html/js source code?

Keep in mind that TW was built as an open source project, and the
ability to create a 'closed source' version was not a consideration in
the design of the TW architecture.  It *might* be possible to deliver
a TW in a completely 'closed' fashion, but it is certainly not a
trivial prospect, and is also not likely to achieve 100% masking of
all internal HTML and JS code.

Nonetheless, here's some thoughts on what might be needed to make the
attempt:

Applications that present dedicated HTML content sometimes do this by
combining a standard application framework with an embeddable browser
library to create a compiled stand-alone application that also
contains the compressed/encoded HTML and JS code content.

This content is then rendered within the embedded browser... which
usually does *not* include commands to view the source code (i.e., no
"view>page source" command), and almost certainly doesn't support use
of 3rd-party JS debugging tools (like FireBug or Jash).  Of course,
you would also have to block user-level access to any
'systemConfig' (plugin) tiddlers within the TW document, so that the
source definitions of those tiddlers can't be viewed either.

However... given that TiddlyWiki itself can be used as a JS
programming environment, it may still be possible to view some of the
source code, which is always available in decoded form from *within*
the TW simply by examining the 'innerHTML' property of the
'document.body' DOM element... and there are undoubtedly many *other*
ways to probe the source using JS from with TW, so the chances that
you can close up all the 'holes' and make the code completely
inaccessible is virtually nil.

Sorry I can't offer a more hopeful outlook... still, if you want to
give it a try (and are successful), it could turn TW into a very nice
RAD (Rapid Application Development) tool.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to