On Tue, 8 Jun 1999, Christian Vandendorpe wrote:
> >   - encrypt the contents of the "prc" files using a two
> >     way self modifying encryption algorithm (RC4 is a perfect
> >     example of this)
> 
> but then your program wont be flashable.

  what i believe we *could* do is compile the .prc file as
  it normally does get compiled..

  THEN..

  write a loader for it.

  the loader uses itself for a "decryption" key, which
  it dynamically loads into memory.

  this loader, takes the existing .prc file and encrypts
  it (do it from unix, dos whatever).. it segments up 
  the program into callable chunks (functions).

  when you load the program, the loader loads the 
  "appropriate" function data chunks.. decrypts them,
  and then using C pointers, calls it. (set the PC to
  the memory location)..

  not modifying the "program" in memory.. but loading 
  it dynamically.. and then "decrypting it".. and executing
  it (ie: not in flash ram).

  make sense?

az.
--
Aaron Ardiri 
Lecturer                       http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 352 8192           A/H: +46 26 10 16 11

Reply via email to