[AD] packfile password not properly documented? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi,
See this thread:
http://www.allegro.cc/ubb-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=002998
And here's a proposed documentation patch. I'm ont sure if this was intended
to be there or not, so I haven't applied the patch.
--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/
Index: allegro._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/allegro._tx,v
retrieving revision 1.18
diff -u -b -r1.18 allegro._tx
--- allegro._tx 2002/01/20 01:10:13 1.18
+++ allegro._tx 2002/01/29 03:25:18
@@ -5846,14 +5846,15 @@
@xref pack_fopen, load_datafile
Sets the encryption password to be used for all read/write operations
on files opened in future using Allegro's packfile functions (whether
- they are compressed or not). Files written with an encryption password
- cannot be read unless the same password is selected, so be careful: if
- you forget the key, I can't make your data come back again! Pass NULL
- or an empty string to return to the normal, non-encrypted mode. If you
- are using this function to prevent people getting access to your
- datafiles, be careful not to store an obvious copy of the password in
- your executable: if there are any strings like "I'm the password for
- the datafile", it would be fairly easy to get access to your data :-)
+ they are compressed or not), including all the save, load and config
+ routines. Files written with an encryption password cannot be read
+ unless the same password is selected, so be careful: if you forget the
+ key, I can't make your data come back again! Pass NULL or an empty
+ string to return to the normal, non-encrypted mode. If you are using
+ this function to prevent people getting access to your datafiles, be
+ careful not to store an obvious copy of the password in your executable:
+ if there are any strings like "I'm the password for the datafile", it
+ would be fairly easy to get access to your data :-)
Important: as soon as you have opened a file using an encryption
password, call packfile_password(NULL) again. Better still, don't touch