]> granicus.if.org Git - zziplib/blob - docs/zzip-crypt.htm
describing zzip-cryptoid handling
[zziplib] / docs / zzip-crypt.htm
1 <h2> ZIP Std Encryption </h2>       Standard Zip Encryption is Weak!
2
3 <!--border--> <date> 15. July 2002 </date>
4
5 <h3> Some rationale </h3>
6
7 <P>
8   Some people might ask why not adding standard zip-encryption. Well,
9   first of all the standard zip-encryption has not been strong enough
10   for modern computers, and there are hacker tools that even a 
11   half-literate computer-user can use to crack the password of a
12   zip-archive. In other words: <b> every encrypted zip file can be
13   cracked using freely downloadable helper tools </b>. That's because
14   standard zip encryption is weak regarding modern personal computer 
15   power. Furthermore, adding <em>real</em> encryption is a heavy weight
16   that many people do not need, see the last argument for seeing the
17   standard one is useless anyway, and adding a non-standard one 
18   should not be the case of the standard zziplib either, ye know.
19 </P><P>
20   On the other hand, obfuscation is a means to fear off half-literates
21   just as well - there are no <em>premade</em> tools for the obfuscation you
22   can invent from the xor examples. And a hacker that can de-obfuscate
23   such a dat-file is able to dissassemble your program as well - just to
24   remind you that the disassembly of a program will reveal the decryption
25   routine <em>and</em> the decryption key, even for a heavyweight crypt
26   algorithm. Although there is a difference, it just ranges on about times 
27   and exprience, not magnitudes. Remember the old saying: you can irritate
28   some people for some time but not irritate all people for all the time.
29   As for encryption of artwork and AI scripts in games and applications,
30   just keep in mind that the final recipient has the decryption key on
31   his system anyway, just obfuscated. So each such encryption is nothing
32   more than just a clever form of obfuscation, nothing mathematical strong.
33 </P><P>
34   Some other people might ask why to obfuscate anyway. Well, the reason
35   is theft. Even people who write opensource free software generally
36   like to get some reward for what they do, some fame or atleast some 
37   sweet dream to have helped the world go a bit easier in the future.
38   As for program text this is quite natural for the programmers who
39   pick up some code from somewhere else - it happens that most of them
40   have gone through some formation and they know how hard it is to get
41   even some lines of code out of your brain. This is not the case for
42   some artwork and AI parameters, people do not have much respect for
43   those - they just pick it up, put it under their umbrella, and 
44   that's it - they even claim they could have done that themselves,
45   and in most cases it is that they never have been really trying to
46   do it and think of it as being comparable to that action-art they've
47   seen on TV. 
48 </P><P>
49   Just be sure that there is nothing wrong with obfuscating
50   things for a binary distribution of your program even for the
51   opensource case - the program text itself is an obfuscation in its
52   source form when being compiled into cpu instructions. Still, the
53   interested people can get hold of the source code since you provide
54   it somewhere and actually the original programmers like to hear 
55   from literate people who could help with modifying the project. The
56   same is true for you artwork and AI scripts, the interested people
57   can still see them in the opensource project material, but only
58   those will look who dare to, not just the halfwit next door. 
59 </P><P>
60   Well, you do not need to that on the other hand - ID software has
61   shown that it can be very helpful since people will start to
62   write new maps and new bots, pack them and publish them. An open
63   data format is a form of attraction for people who can use a 
64   graphics program and an editor but who do not know how to program.
65   And if you use obfuscation within an opensource program, it is
66   surely enought to just use the xor-format presented here, so that
67   it easy for third people to get involved if they want to, they
68   just have to rewrite their new datapacks with zzxorcopy, and
69   that's it.
70 </P><P>
71   As for the non-opensource projects, be aware that there are
72   some ways to even staticlink the zziplib into your project, so
73   you can even hide that you used zip tools to create your dat files.
74   This is well enough for anyone to do - as soon as a hacker will
75   get to the point to notice you used a zip format, he would have
76   had found any other deobfusation or decryption routine as well.
77   If you are frightened, just encrypt the executable with tools
78   you bought from somewhere else. On the other hand, should there
79   be problems or bugs, you have an easier time to find them when
80   they could be caused by your dat entries, and it is again easy
81   to send a fixup file to your clients, since the command line
82   tools are just a breeze compared with some other anti-hacking
83   tools you'll find on the market.
84 </P><P>
85   Well, hope this is enough rationale to tell you that I do not
86   see a need to implement anything more than obfuscation within
87   zziplib - if you need real encryption, use real encryption
88   software and its fileformat that supports it, not zip files.
89 </P>