2 * $Logfile: /Freespace2/code/parse/Encrypt.h $
7 * Header for encryption code common to FreeSpace and related tools
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 3 3/25/99 11:26a Dave
15 * Beefed up encryption scheme so that even someone viewing the
16 * disassembly would have a hard time cracking it.
18 * 2 10/07/98 10:53a Dave
21 * 1 10/07/98 10:50a Dave
23 * 4 8/09/98 4:44p Lawrance
24 * support alternate encryption scheme (doesn't pack chars into 7 bits)
26 * 3 3/31/98 4:57p Lawrance
27 * Add signature at the beginning of encrypted files
29 * 2 3/31/98 1:14a Lawrance
30 * Get .tbl and mission file encryption working.
32 * 1 3/30/98 11:02p Lawrance
40 // initialize encryption
43 // Return 1 if the file is encrypted, otherwise return 0
44 int is_encrpyted(char *scrambled_text);
47 void encrypt(char *text, int text_len, char *scrambled_text, int *scrambled_len, int use_8bit);
49 // Decrypt scrambled_text
50 void unencrypt(char *scrambled_text, int scrambled_len, char *text, int *text_len);