home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / PIBCIPHR.ZIP / README.1ST < prev   
Encoding:
Text File  |  1989-04-28  |  2.4 KB  |  49 lines

  1. PIBCRYPT contains routines to encrypt and decrypt messages using a variation
  2. of Vigenere's cipher.
  3.  
  4. You should find these files in the library:
  5.  
  6.    DEC.COM           VAX/VMS DCL file to execute decryption program
  7.    DECRYPT.PC        IBM PC decryption program source (Turbo Pascal v5.0)
  8.    DECRYPT.VMS       VAX/VMS decryption program source (Vax Pascal)
  9.    ENC.COM           VAX/VMS DCL file to execute encryption program
  10.    ENCRYPT.PC        IBM PC encryption program source (Turbo Pascal v5.0)
  11.    ENCRYPT.VMS       VAX/VMS encryption program source (Vax Pascal)
  12.    README.1ST        What you're reading now!
  13.  
  14. Upload and compile the DECRYPT.VAX and ENCRYPT.VAX programs with Vax Pascal.
  15. See the comments in both programs for details on running the programs.
  16.  
  17. The variable "StringKey" in both the encryption and decryption programs
  18. provides the key which is used to initialize a random-number sequence.
  19. This sequence is used to construct a random encryption key which is as
  20. long as the message being encoded.  A variant of Vigenere's method is used
  21. to perform the encoding.  Only characters in the "printable" range
  22. of Ascii 32 to Ascii 127 are encoded; control characters and upper Ascii
  23. characters are left "as is."
  24.  
  25. If you use this method to exchange messages, you should change the value
  26. of "StringKey" from time to time.   You can also change the function used
  27. to compute the initial random number seed.  You can exchange the new values
  28. of StringKey in public messages, and the code will still be secure as long
  29. as you do not publish the initialization function.
  30.  
  31. A file encrypted by the Vax can be decrypted by the PC, and vice versa.
  32. This is why I've included portable random number generator rather than
  33. using the built-in functions in Vax Pascal and Turbo Pascal.  The code
  34. could be made more efficient for a given platform; my intent was to produce
  35. programs that would be as similar as possible on VMS and DOS, and thus
  36. likely to require minimal modification for other compilers or systems.
  37.  
  38. The random number generator is taken from Press et al, "Numerical Recipes,"
  39. Cambridge University Press, 1986.  They in turn based it on one suggested by
  40. Donald Knuth (see his "Seminumerical Algorithms," Second edition,
  41. Addison-Wesley).
  42.  
  43. I am contributing these routines to the public domain, so there are no
  44. restrictions on their use.  I'd appreciate receiving credit if you do
  45. use them in a product.
  46.  
  47. -- Philip R. "Pib" Burns
  48.    04/28/89
  49.