enigma.c (98e0ffaefb0f241cda3a72395d3be04192ae0d47) | enigma.c (7ed109451289a4cac488e2181f38b86bc3680d6c) |
---|---|
1/*- 2 * "enigma.c" is in file cbw.tar from 3 * anonymous FTP host watmsg.waterloo.edu: pub/crypt/cbw.tar.Z 4 * 5 * A one-rotor machine designed along the lines of Enigma 6 * but considerably trivialized. 7 * 8 * A public-domain replacement for the UNIX "crypt" command. --- 8 unchanged lines hidden (view full) --- 17 18#include <stdio.h> 19#include <stdlib.h> 20#include <string.h> 21#include <unistd.h> 22 23#define MINUSKVAR "CrYpTkEy" 24 | 1/*- 2 * "enigma.c" is in file cbw.tar from 3 * anonymous FTP host watmsg.waterloo.edu: pub/crypt/cbw.tar.Z 4 * 5 * A one-rotor machine designed along the lines of Enigma 6 * but considerably trivialized. 7 * 8 * A public-domain replacement for the UNIX "crypt" command. --- 8 unchanged lines hidden (view full) --- 17 18#include <stdio.h> 19#include <stdlib.h> 20#include <string.h> 21#include <unistd.h> 22 23#define MINUSKVAR "CrYpTkEy" 24 |
25#define ECHO 010 | |
26#define ROTORSZ 256 27#define MASK 0377 28static char t1[ROTORSZ]; 29static char t2[ROTORSZ]; 30static char t3[ROTORSZ]; 31static char deck[ROTORSZ]; 32static char buf[13]; 33 --- 125 unchanged lines hidden --- | 25#define ROTORSZ 256 26#define MASK 0377 27static char t1[ROTORSZ]; 28static char t2[ROTORSZ]; 29static char t3[ROTORSZ]; 30static char deck[ROTORSZ]; 31static char buf[13]; 32 --- 125 unchanged lines hidden --- |