README.CR 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. _____________________________________________________________________________
  2. This is Info-ZIP's README.CR for zcrypt29.zip, last updated 27 March 2008.
  3. _____________________________________________________________________________
  4. The files described below contain the encryption/decryption code for Zip 2.31,
  5. UnZip 5.52, and WiZ 5.02 (and later). These files are included in the main
  6. source distributions for all of these now, but the encryption patch is still
  7. available for earlier versions of these. This file both describes the history
  8. of the encryption package and notes the current conditions for use. Check
  9. the comments at the top of crypt.c and crypt.h for additional information.
  10. As of version 2.9, this encryption source code is copyrighted by Info-ZIP;
  11. see the enclosed LICENSE file for details. Older versions remain in the pub-
  12. lic domain. Zcrypt was originally written in Europe and, as of April 2000,
  13. can be freely distributed from the US as well as other countries.
  14. (The ability to export from the US is new and is due to a change in the Bureau
  15. of Export Administration's regulations, as published in Volume 65, Number
  16. 10, of the Federal Register [14 January 2000]. Info-ZIP filed the required
  17. notification via e-mail on 9 April 2000; see the USexport.msg file in this
  18. archive. However, as of June 2002, it can now be freely distributed in both
  19. source and object forms from any country, including the USA under License
  20. Exception TSU of the U.S. Export Administration Regulations (section 740.13(e))
  21. of 6 June 2002.)
  22. LIKE ANYTHING ELSE THAT IS FREE, ZIP, UNZIP AND THEIR ASSOCIATED
  23. UTILITIES ARE PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND,
  24. EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE AUTHORS BE LIABLE
  25. FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE.
  26. The encryption code is a direct transcription of the algorithm from
  27. Roger Schlafly, described by Phil Katz in the file appnote.txt. This
  28. file is distributed with the PKZIP program (even in the version without
  29. encryption capabilities). Note that the encryption will probably resist
  30. attacks by amateurs if the password is well chosen and long enough (at
  31. least 8 characters) but it will probably not resist attacks by experts.
  32. Paul Kocher has made available information concerning a known-plaintext
  33. attack for the PKWARE encryption scheme; see http://www.cryptography.com/
  34. for details.) Short passwords consisting of lowercase letters only can be
  35. recovered in a few hours on any workstation. But for casual cryptography
  36. designed to keep your mother from reading your mail, it's OK.
  37. For more serious encryption, check into PGP (Pretty Good Privacy), a
  38. public-key-based encryption system available from various Internet sites.
  39. PGP has Zip and UnZip built into it. The most recent version at the time
  40. this was originally written was 6.5, although older versions were still
  41. widespread. At the time of this writing there are now GPG, PGP Universal
  42. 2.0, and various others based on OpenPGP.
  43. We are looking at adding AES strong encryption to future versions of Zip and
  44. UnZip.
  45. Zip 2.3x and UnZip 5.5x and later are compatible with PKZIP 2.04g. (Thanks
  46. to Phil Katz for accepting our suggested minor changes to the zipfile format.)
  47. IMPORTANT NOTE:
  48. Zip archives produced by Zip 2.0 or later must not be *updated* by
  49. Zip 1.1 or PKZIP 1.10 or PKZIP 1.93a, if they contain encrypted members
  50. or if they have been produced in a pipe or on a non-seekable device.
  51. The old versions of Zip or PKZIP would destroy the zip structure. The
  52. old versions can list the contents of the zipfile but cannot extract
  53. it anyway (because of the new compression algorithm). If you do not
  54. use encryption and compress regular disk files, you need not worry about
  55. this problem.
  56. Contents that were distributed and now are part of the main source files:
  57. file what it is
  58. ---- ----------
  59. README.CR this file
  60. LICENSE Info-ZIP license (terms of reuse and redistribution)
  61. USexport.msg export notice sent to US Bureau of Export Administration
  62. WHERE where Zip/UnZip/WiZ and related utilities can be found
  63. crypt.c code for encryption and decryption
  64. crypt.h code for encryption and decryption
  65. file_id.diz description file for some BBSes
  66. Most all of the files are in Unix (LF only) format. On MSDOS systems, you
  67. can use the -a option of UnZip to convert the source files to CRLF
  68. format. This is only necessary if you wish to edit the files -- they
  69. will compile as is with Microsoft C and Turbo/Borland C++ 1.0 or
  70. later. However, you will have to convert the files (using "unzip -a")
  71. to the CRLF format to compile with the older Turbo C 1.0 or 2.0. You
  72. should be able to find Zip and UnZip in the same place you found this
  73. (see ftp://ftp.info-zip.org/pub/infozip/Info-ZIP.html or the file
  74. "WHERE" for details).
  75. Current releases all have encryption built in. To update previous versions
  76. using the zcrypt sources:
  77. (1) Get the main sources (e.g., Zip 2.3) and unpack into a working
  78. directory, as usual.
  79. (2) Overwrite the dummy crypt.c and crypt.h from the main sources with
  80. the versions from this package. If you want to overwrite directly
  81. out of the zcrypt29 archive, do not use UnZip's freshen/updating
  82. option; the dummy files may be newer than the real sources in
  83. zcrypt29. ("unzip -o zcrypt29 -d /your/working/dir" will do the
  84. Right Thing in most cases, although it may overwrite a newer WHERE
  85. file under some circumstances.)
  86. (3) Read the main INSTALL document and compile normally! No makefile
  87. changes are necessary on account of the zcrypt sources. You can
  88. check that the version you just compiled has encryption or decryption
  89. support enabled by typing "zip -v" or "unzip -v" and verifying that
  90. the last "special compilation option" says encryption or decryption
  91. is included.
  92. Encryption enables new "-e" and "-P password" options in Zip, and a new
  93. "-P password" option in UnZip--see the normal Zip and UnZip documentation
  94. for details. (Note that passing a plaintext password on the command line
  95. is potentially much more insecure than being prompted for it interactively,
  96. which is the default for UnZip and for Zip with "-e". Also note that the
  97. interactive method allows UnZip to deal with archives that use different
  98. passwords for different files.)