Skip to main content

Encrypting the HTML

1 reply [Last post]
Anonymous

Hi,

Is it possible to encrypt the HTML thats part of JavaHelp in an
application? How else can you protect access to the JavaHelp which has to
be on the client PC.

Bill.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jon Sanders

Hi,

This is a bit out of my league, but here goes.

Since you can password protect individual files in a ZIP file, it should in
theory be possible to protect files in a JAR file (ZIP and JAR files are the
same format).

By the way, WinZip 9.0 now has 128-bit, 192-bit, and 256-bit Advanced
Encryption Standard (AES) encryption.

Therefore if you package your help set in a JAR file, and the HTML files
within that JAR file are password protected then you have a possible solution.

However, as far as I can tell there is no support in Java for loading
password protected files from within a JAR file.

So, you would have to write your own class loader that is used by the help
viewer application to load the password protected files.

This would still allow you to use WinZip (or similar) to retrieve the files
from the JAR if you knew the password. You would also be able to use WinZip
(or similar) to build the final help set JAR with password protected files.

Anyway, here are some discussions on these very topics I have found:

http://www.theserverside.com/discussions/thread.tss?thread_id=26679

http://forum.java.sun.com/thread.jspa?threadID=337635

Stuff about signatures and authentication (not the same as encrypted file):

http://java.sun.com/docs/books/tutorial/deployment/jar/

A product that claims to offer a ZIP file encryption and decription Java Bean:

http://www.nsoftware.com/ipworks/zip/

The other possibility I can think of is to have a help server on the client
machine that decrypts the HTML files and serves them to the help reader
application/applet. Now that really is out of my league. :)

Hope this information helps.

Cheers

Jon

On Mon, 21 May 2007 13:48:37 -0600, Bill Batchelor
wrote:

>Hi,
>
>Is it possible to encrypt the HTML thats part of JavaHelp in an
>application? How else can you protect access to the JavaHelp which has to
>be on the client PC.
>
>Bill.
>
>********************************************************************************
>
>You may leave the list at any time by sending message with no subject and
>"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
>are available at http://archives.java.sun.com/archives/javahelp-interest.html.
>Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.