delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/13/08:31:30

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: Password protecting DATAFILE
Date: 11 Oct 1997 17:25:51 GMT
Organization: Oxford University, England
Message-ID: <61ocqv$li3$3@news.ox.ac.uk>
References: <61oa8h$9vg$2 AT news DOT interlog DOT com>
NNTP-Posting-Host: sable.ox.ac.uk
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019