Mail Archives: djgpp/1997/10/13/08:31:30
Gautam N. Lad (gautam AT interlog DOT com) wrote:
: This may be one of the dumbest question, but is there any way to password
: protect Allegro's DATAFILE (.DAT) so that if a user of my program has
: DJGPP and Allegro fully installed, tries to open up my program's .DAT file, it
: would ask for a password (which is stored in the .DAT file).
: I mean, they can hack the Grabber program to by-pass the password (if
: possible), but is something like this possible, hopefully in the future (or is it
: already available in v3.x)?
It's already available. The encryption system is not particularly secure;
anyone with the source to your program could of course find out what the
password is. I think it's a WIP feature, though. You call a function to
set a password, and then all subsequent packfile functions (including
datafile accesses) use that password. The grabber and dat utility both
support this too.
--
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford
- Raw text -