2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/parse/Encrypt.h $
15 * Header for encryption code common to FreeSpace and related tools
18 * Revision 1.2 2002/06/09 04:41:12 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 3 3/25/99 11:26a Dave
26 * Beefed up encryption scheme so that even someone viewing the
27 * disassembly would have a hard time cracking it.
29 * 2 10/07/98 10:53a Dave
32 * 1 10/07/98 10:50a Dave
34 * 4 8/09/98 4:44p Lawrance
35 * support alternate encryption scheme (doesn't pack chars into 7 bits)
37 * 3 3/31/98 4:57p Lawrance
38 * Add signature at the beginning of encrypted files
40 * 2 3/31/98 1:14a Lawrance
41 * Get .tbl and mission file encryption working.
43 * 1 3/30/98 11:02p Lawrance
51 // initialize encryption
54 // Return 1 if the file is encrypted, otherwise return 0
55 int is_encrpyted(char *scrambled_text);
58 void encrypt(char *text, int text_len, char *scrambled_text, int *scrambled_len, int use_8bit);
60 // Decrypt scrambled_text
61 void unencrypt(char *scrambled_text, int scrambled_len, char *text, int *text_len);