Format fixes in 1992/nathan/README.md
This commit is contained in:
1 parent
ce3e179933
commit
e55337e6f0
1 file changed
+26
-19
+26
-19
@@ -1,27 +1,34 @@
|
|||||||
# Worst Abuse of the Rules:
|
# Worst Abuse of the Rules
|
||||||
|
|
||||||
Nathan Sidwell
|
Nathan Sidwell
|
||||||
Inmos UK
|
Inmos UK
|
||||||
1000 Aztec West
|
1000 Aztec West
|
||||||
Almondsbury
|
Almondsbury
|
||||||
Bristol
|
Bristol
|
||||||
UK BS12 4SQ
|
UK BS12 4SQ
|
||||||
|
|
||||||
## To build:
|
## To build:
|
||||||
|
|
||||||
make all
|
```sh
|
||||||
|
make all
|
||||||
|
```
|
||||||
|
|
||||||
## To run
|
## To run
|
||||||
|
|
||||||
./nathan
|
```sh
|
||||||
|
./nathan
|
||||||
|
```
|
||||||
|
|
||||||
## Judges' comments
|
## Try:
|
||||||
|
|
||||||
Try:
|
```sh
|
||||||
|
./nathan obfuscate < nathan.c > foobarf.c
|
||||||
|
./nathan - obfuscate < foobarf.c > barfoof.c
|
||||||
|
diff nathan.c barfoof.c
|
||||||
|
```
|
||||||
|
|
||||||
./nathan obfuscate < nathan.c > foobarf.c
|
|
||||||
./nathan - obfuscate < foobarf.c > barfoof.c
|
## Judges' comments:
|
||||||
diff nathan.c barfoof.c
|
|
||||||
|
|
||||||
### WARNING:
|
### WARNING:
|
||||||
|
|
||||||
@@ -77,7 +84,7 @@ re-distribute a program contest winner to the network!
|
|||||||
|
|
||||||
## Author's comments
|
## Author's comments
|
||||||
|
|
||||||
### PROGRAM USE
|
### PROGRAM USE:
|
||||||
|
|
||||||
This program is a hello world text encryptor/decryptor. It uses an
|
This program is a hello world text encryptor/decryptor. It uses an
|
||||||
enigma (I think) style encryption algorithm, where the encryption
|
enigma (I think) style encryption algorithm, where the encryption
|
||||||
@@ -93,12 +100,12 @@ before the key. (Actually encryption and decryption proper inverse
|
|||||||
operations, so you can use decrypt to scramble and encrypt to
|
operations, so you can use decrypt to scramble and encrypt to
|
||||||
descramble, if you're perverse.)
|
descramble, if you're perverse.)
|
||||||
|
|
||||||
### PORTABILITY (A little knowledge is a dangerous thing)
|
### PORTABILITY (A little knowledge is a dangerous thing):
|
||||||
|
|
||||||
It's written in ANSI C, and doesn't even assume an ASCII character
|
It's written in ANSI C, and doesn't even assume an ASCII character
|
||||||
set, (it has an array of the characters to convert), so should be
|
set, (it has an array of the characters to convert), so should be
|
||||||
portable across many platforms. It passes gcc -ansi -pedantic -O
|
portable across many platforms. It passes `gcc -ansi -pedantic -O
|
||||||
-Wall with no warnings (You may get assignment in conditional
|
-Wall` with no warnings (You may get assignment in conditional
|
||||||
warnings on other platforms though). Because I've heard that
|
warnings on other platforms though). Because I've heard that
|
||||||
conditional jumps slow down fast processors, I've eliminated all
|
conditional jumps slow down fast processors, I've eliminated all
|
||||||
the ifs from the code, indeed, as its only one statement, it should
|
the ifs from the code, indeed, as its only one statement, it should
|
||||||
@@ -109,7 +116,7 @@ another scoping level does not need to be opened.
|
|||||||
Being an encryptor/decryptor, you probably want the source code to
|
Being an encryptor/decryptor, you probably want the source code to
|
||||||
be obfuscated, to hide the algorithm.
|
be obfuscated, to hide the algorithm.
|
||||||
|
|
||||||
### OBFUSCATION
|
### OBFUSCATION:
|
||||||
|
|
||||||
In spite of the fact that it looks like a nice friendly hello world
|
In spite of the fact that it looks like a nice friendly hello world
|
||||||
program, it isn't (as documented above). (Short lines have been padded,
|
program, it isn't (as documented above). (Short lines have been padded,
|
||||||
|
|||||||
Reference in new issue
Block a user