how to protect your file against crackers

  cracking dxr: contra
If you really want to protect the file, first embed it as an aif in the
Director file (without linking it as external media).  Save and protect the
file, and then your problem is to prevent someone from "cracking" your dxr.

To "crack" a dxr, you have to open it as a MIAW first.  (Unless one of you
knows a different way...)  To prevent someone from opening it up as an
MIAW, set up your file so that when YOU open it you pass it a secret code
of some type.  For instance, when you call the movie, you could do this

global gCode
on mouseup
   set gCode = #xxoo010101010xxyyzz
   go movie "myMovie"
end mouseup

When the target movie containing the aif is opened, have it check for the
correct code in this variable.  You could use the preparemovie or
startmovie handlers, or also the activateWindow handler for MIAW.

global gCode
on startmovie
   if gCode = #xxoo010101010xxyyzz then
       go frame "myframe"
       -- do something nasty
   end if
end startmovie

If you pass the code to the movie, it will run normally (as YOU the
programmer want it to).  If you don't pass the code to the movie, then the
default should be something nasty:  restart the user's machine, use
downloadnetthing in an endless repeat loop to copy a million files to his
hard drive, etc.

(You could also set up a check to see if the file has been copied from the
read-only CD-ROM.  Try to write a file to somewhere in the moviepath with
fileIO -- if it works, then the file is no longer on a read-only disk, and
thus you could erase the aif cast member from the movie.  This only leaves
the cracker the choice of opening the file as a MIAW from the CD-ROM -- and
the trick above ought to take care of that...)

In sum, the best defense is offense.  Make the first time the cracker
attempts to open your file so unpleasant that he won't even bother to try a
second time.

Keith Seward

Home shock + cgi Bits 'n pieces Director Lingo ShockLets Contact