home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / w / wpcryp.zip / WPCRYPT.DOC < prev    next >
Text File  |  1991-06-26  |  7KB  |  144 lines

  1. WPCRYPT 1.0                  WordPerfect 5.x file encryptor/decryptor
  2.                              Copyright 1991           Daniel W. Emmer
  3.  
  4.       WPCRYPT is a useful little utility that provides somewhat
  5. improved (I think...) password protection for sensitive WordPerfect
  6. 5.x documents.  WordPerfect's own file encryption method is rather
  7. sloppy;  relatively simple analysis of many supposedly "locked"
  8. files can reveal their passwords (my own WPPASS utility does this,
  9. and if I can do it, ANYONE can...).  WPCorp's major slip: their
  10. encryption scheme begins encoding a file very near the beginning,
  11. encrypting assorted system codes that precede the actual body of
  12. the document.  Some of these codes are ALWAYS the same in ANY WP
  13. 5.x document file, and some others vary but are somewhat
  14. predictable.  This gives the cryptographer / decryption program
  15. just what he/she/it needs: a set of known bytes encrypted by
  16. exactly the same method as the rest of the document.  Working
  17. backward from these known bytes, it's not too difficult to break
  18. the code and access the rest of the file.
  19.  
  20.       WPCRYPT uses an encryption algorithm somewhat like
  21. WordPerfect's, but it begins encrypting at the beginning of your
  22. document's text, leaving the all-too-predictable prefatory codes exactly
  23. as they were.  As a result, WPCRYPT-encoded files are considerably
  24. harder to crack.  An experienced cryptographer could undoubtedly do
  25. it (though it would be much more difficult than unlocking a file
  26. protected by WordPerfect), but this isn't something that most of us
  27. have to worry about....
  28.  
  29.  
  30. USAGE
  31.  
  32.       Syntax:     WPCRYPT
  33.                   WPCRYPT infile
  34.                   WPCRYPT infile password
  35.                   WPCRYPT infile password outfile
  36.  
  37.  
  38.             where infile   = name of file to be en/decrypted
  39.                   password = password (case sensitive)
  40.                   outfile  = name for the newly en/decrypted file
  41.                              ***MUST*** be different than infile
  42.  
  43.       If you don't specify all three parameters, WPCRYPT will prompt
  44. you for the rest.  However, WPCRYPT assumes that command-line
  45. parameters come in order, so the four variations above are the only
  46. acceptable options (my fault -- sloppy programming).  File names
  47. can include a path name if you're using DOS 2.0 or higher.  Wildcards 
  48. are not supported.
  49.  
  50. ENCRYPTION vs. DECRYPTION
  51.  
  52. There's NO DIFFERENCE IN SYNTAX between an encryption and a
  53. decryption.  If you send in a file that's already encrypted, the
  54. output file will be decrypted and vice versa.  As far as the
  55. program is concerned, it's exactly the same operation.  For
  56. example, if FILE.XXX is a WP document:
  57.  
  58.                   WPCRYPT FILE.XXX ARTICHOKE FILE.YYY
  59.  
  60. encrypts FILE.XXX using password ARTICHOKE and puts the result into
  61. FILE.YYY.  Then:
  62.  
  63.                   WPCRYPT FILE.YYY ARTICHOKE FILE.ZZZ
  64.  
  65. decrypts FILE.YYY into FILE.ZZZ, which will be identical to
  66. FILE.XXX.  It's best to use a unique extension for all encrypted
  67. files (something obvious like .ENC), just to keep track of what's
  68. what.
  69.  
  70.       Please note: if you attempt to decrypt a file with the WRONG
  71. password, you will get no instructive error messages or annoying
  72. beeps, just an output file full of gibberish.  This is the major
  73. reason that WPCRYPT doesn't allow you to replace the input file
  74. with an output file of the same name;  if a typo or momentary
  75. memory lapse turns your output file into nonsense, you can always
  76. try again from the original.  WordPerfect will retrieve an
  77. improperly decrypted file, but it won't be of much use....
  78. In fact, WordPerfect will allow you to retrieve ANY file
  79. encrypted by WPCRYPT, since the files aren't "locked" by WP's
  80. method. However, there's a strong possibility that WordPerfect 
  81. will be hopelessly confused by the encoded (or improperly decoded)
  82. data and will "lock up" your system.  No harm is done, but
  83. you will have to re-boot the system.  I'm not sure whether to call
  84. this a "bug" (since it can be inconvenient) or a "feature" (since
  85. it can be REALLY inconvenient for someone who's trying to access
  86. encrypted files without the appropriate passwords)....  To see if a
  87. document has decrypted properly, use the Look option on the List
  88. Files menu before retrieving the file.
  89.  
  90.       If you want to make WPCRYPT a bit easier to use for encrypting
  91. a number of files, create a simple batch file that takes all three
  92. parameters, calls WPCRYPT, and deletes the unencrypted original:
  93.  
  94.       @ECHO OFF
  95.       WPCRYPT %1 %2 %3
  96.       DEL %1
  97.  
  98. Please try this only if you've tested WPCRYPT thoroughly and trust
  99. it to retrieve your originals without error.
  100.  
  101. PASSWORDS
  102.  
  103.       Anything that you can get the program to accept should work.
  104. Passwords are case sensitive and must be reproduced EXACTLY to get
  105. an exact decryption.  Extended ASCII characters (generated by ALT-
  106. keypad #) are perfectly acceptable.  You might get SOME
  107. intelligible text something close to the right password, but you
  108. probably won't get much.  Please remember that ANY encryption done
  109. with WPCRYPT can be reversed by WPCRYPTing again with the same
  110. password.  Without the password, good luck....
  111.  
  112.  
  113.  
  114.  
  115. ADMINISTRATIVE NONSENSE
  116.  
  117.       This is hardly a "professional-quality" program, with all the
  118. proverbial "bells and whistles" that accompany expensive software
  119. packages.  The ideas on which the program is based are, of course,
  120. stolen, but the code (such as it is) is entirely my own.  Source
  121. code is neither included nor available, since my programming skills
  122. leave much to be desired and I, like many others, prefer to avoid
  123. public ridicule.  I also take NO responsibility for the results of
  124. any use (or misuse) of the program.  WordPerfect, as you might
  125. expect, is a trademark of WordPerfect, Inc.
  126.  
  127.       If you find this program useful, I'd be thrilled beyond belief
  128. if you'd send a donation of $5 or $10 (or whatever you feel is
  129. appropriate) to the address below, or, better still, send a few
  130. dollars to your favorite charitable and/or non-profit organization
  131. on my behalf.  If you're a student in any accredited (or
  132. unaccredited, for that matter) academic program, I hereby official-
  133. ly exempt you from any fee if you use this program in conjunction
  134. with your course of study.  If you haven't found it useful yet,
  135. feel free to keep a copy lying around in case the need should
  136. arise.  I any case, I'd appreciate E-mail at any of the addresses
  137. below if you have any comments or complaints about the program.
  138.  
  139. Daniel W. Emmer
  140. University at Buffalo        Internet: v393vlqr@ubvms.cc.buffalo.edu
  141. Department of Anthropology   BITNET: V393VLQR@UBVMS
  142. 380 MFAC                     CompuServe: 73520,3206
  143. Buffalo, NY  14261
  144.