OFFICE HOURS DURING SEMESTER
Most recent announcements are at top, older ones are further down the page.
gawk -f scramble.gawk < a1 | gawk -f descramble.gawk
outputs the contents of a1 unchanged.
The key
file is just a reordering of the numbers from 1 to 25. The unkey file is
a list of pairs of letters, the first letter ranging from a to z and the
second letter being what you want to map the first letter to. For example,
I frequently map unknown letters to _ although one could also map them to
upper case versions of themselves if that was more convenient.
To do my deciphering, on a unix box, I open three windows. In one window I
have a shell loop repeatedly descrambling the cipher text every 5 seconds.
In another window, I have the text editor open on the unkey file.
The idea is that every time I make a change to the unkey file, 5 seconds
later, that change automatically occurs in the window that is running the
descrambling script.
[In the third window, I opened a text file to keep track of what I tried,
providing raw material for the report on how the cipher was cracked.]
To see what statistics should be for various situations
in English, I consulted various pages referred to on the course web page:
I can be contacted by email at webber@csd.uwo.ca . Be sure and include course number in subject line of your email.