home *** CD-ROM | disk | FTP | other *** search
-
- SCRAMBL.MS╟á consist≤á oµ SCRAMBLE.DO├ plu≤ thσ initia∞á comment≤
- section of SCRAMBLE.ASM (Version 2.1).
-
- J.E. CROWELL
-
-
-
- SCRAMBLE.DOC:
-
- SCRAMBLE is a command used to encode a CP/M file.
-
- The format of the command is:
- SCRAMBLE filename.type password
- where "password" is an 8 character password made of characters
- perissible in a file name (i.e. no ".", etc). To obtain a good
- "initial seed" for the scrambling process, no character in the
- password may appear more than twice.
-
- The requested file is scrambled, and re-written in place.
- To un-scramble the file, the IDENTICAL command is issued,
- i.e. SCRAMBLE filename.type password. This is because
- SCRAMBLE does an "exclusive-or" type modification to the file,
- and doing two identical exclusive-or's to data result
- in the same data being retuned.
-
- I feel a scrambled file is quite secure. Given that a file
- was scrambled and the password forgotten, I know of no way to
- determine what the original file was. Even a file which
- is all binary-0's, is sufficiently scrambled to defy finding
- out what the password or original data was. ...But I assume
- no responsibility for the "security" of files scrambled
- with SCRAMBLE as I am not a "student of cryptology".
-
- Note also, that if an attempt is made to unscramble a scrambled
- file, using the WRONG password, then the file is technically
- "double scrambled" and SCRAMBLE would then have to be executed
- TWICE, once with the original password, and once with the
- erroniously-used password. Because of the exclusive or-ing
- process, either password may be used either time.
-
- 03/11/79 Ward Christensen
-
-
-
-
-
-
-
-
-
-
-
-
-
- è
- SCRAMBLE.ASM:
-
-
- 03/11/79 Ward Christensen
- ; SCRAMBLE.ASM ver 2.1
- ;
- ;SCRAMBLE is a program to scramble CP/M files using an 8 byte
- ;password.
- ;
- ;03/14/79 Originally written by Ward Christensen
- ;
- ;07/13/81 Moved stack init to beginning so default stack not
- ; used. Added fix to write routine for proper
- ; operation under CP/M 2.x. Expanded Macros so program
- ; may be assembled with ASM. By Keith Petersen, W8SDZ
- ;
- ;12/30/82 Removed loop called MIXUP and MVI H,0 just before
- ; it. Comment was "Scramble awhile to mix up the
- ; seed". Loop occurred before the password was moved
- ; into location, so loop had no effect on "seed".
- ; Added CALL ERXIT in FINISH. If an error had
- ; occurred program would have crashed on the error
- ; message itself. Added more comments around pseudo-
- ; random number generator to better understand the
- ; coding. By Bob Hageman
- ;
- MONTH EQU 12 ;LAST..
- DAY EQU 30 ;..MODIFICATION..
- YEAR EQU 82 ;..DATE
- ;
- ;Scrambling is done in place, i.e. the file is modified on top
- ;of itself. The same password used to scramble the file is
- ;used to unscramble it, using the exact same command. This is
- ;because the scrambling code is exclusive-ORed with the data
- ;file, and two same exclusive ORs result in the original value
- ;being returned.
- ;
- ;Command format:
- ;
- ; SCRAMBLE filename.type PASSWORD
- ;
- ;Where PASSWORD is any 8 character string which
- ;is allowable as a file name (i.e. no '.', etc).
- ;