A friend wants to produce a CD which, when inserted into the drive, prompts
for a password. If the password is not correct, then the CD should not be
accessible. Any advice on where to get some information showing how this is
done would be most appreciated.
Thank you,
Gerard
Monique Y. Mudama - 20 Oct 2005 00:55 GMT
> A friend wants to produce a CD which, when inserted into the drive,
> prompts for a password. If the password is not correct, then the CD
> should not be accessible. Any advice on where to get some
> information showing how this is done would be most appreciated.
>
> Thank you, Gerard
I'm having trouble imagining how this is relevant to Java. Even if
Java can do it, I doubt it's the right tool for the job.
What about just putting a password protected zip file on the CD? ISTR
you can do that.

Signature
monique
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Roedy Green - 20 Oct 2005 01:32 GMT
>I'm having trouble imagining how this is relevant to Java. Even if
>Java can do it, I doubt it's the right tool for the job.
Java would be the ideal tool if he wants a single CD to distribute to
any platform.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Andrew Thompson - 20 Oct 2005 03:36 GMT
>>I'm having trouble imagining how this is relevant to Java. Even if
>>Java can do it, I doubt it's the right tool for the job.
>
> Java would be the ideal tool if he wants a single CD to distribute to
> any platform.
...hmmm. I had some CD based projects that would
have an 'index.html' at the root that linked to
other pages, applets and resources in sub-directories.
For the Windows platform, I included a little .exe
program that automatically launched the index.html
in the default browser. There were no *nix/Mac users
in these distributions, but given 'index.html' was
the only file at the CD root (besides the .exe),
..I hope they could guess what to do.
For a while, it worked quite well
But.. IE SP2 pretty much killed them. :-(
I could never get the MS 'mark of the web' to coax
Internet Explorer into accepting this 'active content'
without user prompting, and by prompting the user,
but loading the applets in an unstrusted sandbox,
the entire thing would fail - I could find no way
to get the applet accepted as 'trusted' before it
was fully loaded..
I gave up in disgust.
Now I am at the stage where I agree with Monique's comment..
'I doubt it's the right tool for the job'
Though, ..one (sneaky) way to 'include' your Java
project on CD is to put an index.html* that links to a
JNLP on the internet.
* 'The software will require an internet connection
during installation'
;-)
Roedy Green - 20 Oct 2005 03:47 GMT
>Though, ..one (sneaky) way to 'include' your Java
>project on CD is to put an index.html* that links to a
>JNLP on the internet.
I talk about how I solved it at
http://mindprod.com/jgloss/javawebstart.html#CD
there are many kludges including mine. Mine is tedious to set up (I
automate the generation of many little files), but I have had no
reports of failure from the field.
I would like Sun to build something specifically into JNLP to handle
CD installs so they were so Rube Goldbergish.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Andrew Thompson - 20 Oct 2005 04:31 GMT
> I would like Sun to build something specifically into JNLP to handle
> CD installs..
You'll get my vote. Where's the RFE/Issue Tracker/Bug Report?
Roedy Green - 20 Oct 2005 08:23 GMT
>You'll get my vote. Where's the RFE/Issue Tracker/Bug Report?
Hmm. First I need to come up with some syntax and an implementation
don't I? Or are you allowed to make an RFE that leaves that totally
up to them?

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Andrew Thompson - 20 Oct 2005 08:41 GMT
>>You'll get my vote. Where's the RFE/Issue Tracker/Bug Report?
>
> Hmm. First I need to come up with some syntax and an implementation
> don't I? Or are you allowed to make an RFE that leaves that totally
> up to them?
Sorry, not sure. On some of the JDIC forums, it is enough
to raise an 'Issue' (a bug or request for enhancement) without
any sign of code or strategy, but such requests don't get
..much attention.
My recollections of Bug Reports at Sun is vague, and this
is more an RFE, I am not sure if they are handled under the
'Bug Report' process.
Darryl L. Pierce - 20 Oct 2005 12:50 GMT
>>I'm having trouble imagining how this is relevant to Java. Even if
>>Java can do it, I doubt it's the right tool for the job.
>
> Java would be the ideal tool if he wants a single CD to distribute to
> any platform.
What platforms automatically execute applications on a CD? Linux doesn't...

Signature
Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"Bury me next to my wife. Nothing too fancy..." - Ulysses S. Grant
Roedy Green - 20 Oct 2005 01:31 GMT
>A friend wants to produce a CD which, when inserted into the drive, prompts
>for a password. If the password is not correct, then the CD should not be
>accessible. Any advice on where to get some information showing how this is
>done would be most appreciated.
The files are a CD are accessible. It is just like a big floppy with
the read-protect tab removed.
All can do is make the files useless if you don't know the password.
This means encrypting the files using the password/passphrase as the
key.
The encryption folk would feel no guilt about letting a guy make a
tiny mistake in keying the password, but you don't find out till hours
later when the entire CD is decrypted and all you have is gibberish.
The practical solution is to use PKZip and a free PKZip reader to
unpack the files. It will encrypt them for you without writing any
code other than a bat file.
See http://mindprod.com/jgloss/pkzip.html
IF you want something platform independent, you will have to use JCE.
If you don't want to tackle that yourself, there are many people who
would for a fee including myself.
see http://mindprod.com/jgloss/jce.html
http://mindprod.com/jgloss/cryptography.html
http://mindprod.com/jgloss/encryption.html
You might also look into installers that have various features to make
the files useless to non-registered people.
See http://mindprod.com/installer.html
With installers, there are multiple unlocking passwords, with
passwords tied to individual users.
For super high security, you use thumb drives/tokens. See
http://mindprod.com/bgloss/thumbdrive.html Then someone can only use
the CD if they possess a key fob-like device and a password.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
Roedy Green - 20 Oct 2005 01:33 GMT
>A friend wants to produce a CD which, when inserted into the drive, prompts
>for a password. If the password is not correct, then the CD should not be
>accessible. Any advice on where to get some information showing how this is
>done would be most appreciated.
Another way to do it is to leave part of the crucial information off
the CD. During the install you use your password to fetch/generate
the missing pieces from a server.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.