home *** CD-ROM | disk | FTP | other *** search
-
- * * * * * * * * * * * * * * * * * * * * * * * * *
- * *
- * P C - C O D E 3 & P C - C O D E 4 *
- * *
- * * * * * * * * * * * * * * * * * * * * * * * * *
-
-
-
- v6.1/v6.2 April 1986 By Richard Nolen COLVARD
-
-
- PC-CODE3 and PC-CODE4 are Portable Versions Specifically
- for Generic MS-DOS and Xenix 5. They are written in a
- strictly portable Microsoft FORTRAN-77 V3.30. The Object
- code on these diskette(s) is compatiable with both MS-DOS
- and Microsoft Xenix; meaning these program need NO recompiling
- - they only needed to LINKED to the respective libraries.
- As distributed they have been Linked for MS-DOS.
-
- It is a goal to generate only Portable Source Code in
- universally Portable languages like FORTRAN and "C".
- Most versions of Unix (copyright ATT) supply a FORTRAN
- compiler usually called "F77".
-
- As an added side feature, the MS-DOS version will automatically
- execute faster if the PC contains an Intel 8087 math co-processor.
- If your PC doesnot - no matter - except that the programs will
- run slower.
-
-
- PC-CODE3 is a simplified version of PC-CODE2 (V1.53) and likewise
- is intended for "Printable" textal data or Console input (CON:).
-
-
- PC-CODE4 is a simplified version of PC-CODE1 (V1.53) and likewise
- is intended for encoding Files as opposed to text.
-
-
- PC-STAT3 is a simple statistical program by which the user may
- do simple analysis of either a Plain Text FILE or a Coded FILE.
- Basically, it does frequency counts that were previously embedded
- features of PC-CODE1 & 2.
-
-
- INSTALL3 is used to drive and configure PC-CODE3/PC-CODE4.
- Many options that were specified repeatitively by questions
- now are answered only once - when a change is required.
- The user elelected options are stored in a file called "CONFIG.PC3".
- An example of this file Follows:
-
-
-
- 3 <------- SECURITY ALGORITHM
- Y <------- KEYS TO BE READ FROM A FILE
- Y <------- TRANSPOSITION
- 32 <------- LOWEST ASCII CHARACTER
- 125 <------- HIGHEST ASCII CHARACTER
- Y <------- ENCODED FILE HEADER
- Y <------- KEY HASK (CRC) CHECK
- 4 <------- FREQ/PERIOD FOR TRANSPOSITIONS
- N <------- DISPLAY ALL INPUT ON TERMINAL
- Y <------- DISPLAY ALL OUTPUT ON TERMINAL
-
-
-
- SECURITY ALGORITHM
- ==================
-
- The user may select from up to three Psuedo Random Number
- generators. A user who knows FORTRAN may also add as many
- as he/she wishes - since the Source Code is provided.
- As programmed the present options are 1 or 2 or 3.
-
-
- KEYS TO BE READ FROM A FILE
- ===========================
-
- Valid answers are "Y" for YES and "N" for NO. If the user
- wishes to read this key numbers from a file enter "Y".
- If "N" is specified, the user must type in these numbers.
- The numbers are between 1 and 2,147,483,647. And for true
- security only 6 to 8 digits numbers should be used.
-
- A key file is simply a series of number (4 or more)
- separated by Fortran Carriage returns (and/or line feeds)
- and terminated by an end of file mark (CNTL-Z).
-
- For example (ignoring scale):
-
- 0 1 2 <----- File Column Position
- 12345678901234567890
- ..........+.........
- 41626272
- 10973003
- 05553134
- 99185776
- 44045122
- 126477121
- 200943657
- ^Z
-
-
-
-
- TRANSPOSITION
- =============
-
- Transposition is an added feature to allow Super-Encipherment.
- If this option is "Y" (for YES), then the code is Scrambled
- and well as encoded. This features improves security by
- 400 percent, but costs in execution time. Execution times
- in some cases are more than doubled. If you desire is for
- speed as opposed to improved security "N" is the correct
- option.
-
-
-
- LOWEST ASCII CHARACTER
- ======================
-
- Actually, this is more correctly Lowest EBCDIC character.
- On the IBM PC, 32 is the Space/blank and is also the first non
- special character. Characters 00 thru 31 are special
- Control or Communications characters and are for the most
- part "Non-printable". Refer to Appendix D (Pages D-1 thru
- D-5) in the IBM BASIC Reference Manual 6361134 dated May
- 1984 for PC-DOS 3.0. Generally, using 32 as a default
- will save later problems.
-
-
-
-
- HIGHEST ASCII CHARACTER
- =======================
-
- Actually, this is more correctly Highest EBCDIC character.
- On the IBM PC, 125 is the last originary character -
- excluding the non-printable graphic characters. Generally,
- using a value of 125, will allow every character on any
- PC keybroad.
-
-
-
- ENCODED FILE HEADER
- ===================
-
- If this option is "Y" (for YES), than an Encoded File
- will have an Header record to verify that the file
- was encoded by a particular version of this program.
- The program will also refuse to decode a file that
- has not been encoded. This is generally a good safety
- feature. A value of "N" (for NO) diables this feature.
-
-
-
- KEY HASK (CRC) CHECK
- ====================
-
- If this Option is "Y" AND the prior option (file header)
- is also "Y", then a hash total from the keys used to
- encode the file is stored in the Encoded File Header
- record. The Hashed number is between 000 and 996.
- No security is loss by this feature of any consequences.
- It protects the users from decoding a file with the wrong
- keys. In rare cases, an encoded file could be destroyed
- if the wrong key(s) were used (especially PC-CODE4).
-
-
-
- FREQ/PERIOD FOR TRANSPOSITIONS
- ==============================
-
- If the user has elected to Transpose (scramble) his/her
- encoded (Y) - then a new deal or permutation must be
- generated for this scrambling. The highest security
- means that a frequency of one (1) should be used ;
- meaning a new permutation for each record. But, for
- economy, it has been found that a new permuation can
- be used up to 4 times - with little loss in security.
- Note, also that is feature is nullified if the inputed
- records are of differing lengths constantly. Each time
- a record length varies from the previous length a
- new deal must be generated regardless for PC-CODE3.
- This restriction does not apply to PC-CODE4 where are
- records are fixed at 128 characters (or 256 or 512..etc).
-
-
-
-
- DISPLAY ALL INPUT ON TERMINAL
- =============================
-
- If this option is "Y" (for YES), then all input to the
- programs are listed or displayed on the Console (CRT).
- This is assumed to be "CON:" on MS-DOS.
-
-
-
- DISPLAY ALL OUTPUT ON TERMINAL
- ==============================
-
- If this option is "Y" (for YES), then all output from
- the program is listed or displayed on the Console (CRT).
- This is assumed to be "CON:" on MS-DOS.
-
-
-
-
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- These programs are released in the Public Domain and only the
- Commercial Rights are Reserved. By Richard Nolen COLVARD.
-
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-