The slide-rule collection

Cipher Disk and Slide

A cipher disk is a circular slide rule for letters: turn one alphabet against another and every letter is added to the shift. Turn it as you go and the code gets much harder; slide a table of letter frequencies along the ciphertext and a simple shift falls apart.

Encode

Drag the inner disk round, or Tab to it and use the arrow keys, or type the letter that A should become. Leave "every" at 0 for a plain shift.

Alberti's disk

A shift is an addition. Number the letters 0 to 25: a shift of k adds k to each, going round past Z, which is arithmetic mod 26. Julius Caesar, says Suetonius, shifted by three. The disk does the sum, as a circular slide rule adds logarithms.

Turning it. Leon Battista Alberti described his disk in 1467: a fixed ring of capitals and a movable ring of small letters. His new idea was to turn the inner ring every few words, so that one letter is enciphered several ways. That is the first polyalphabetic cipher in Europe, and it defeats counting letters.

Try it. Encode "AAAAAA" with the disk turned every 2 letters: the A's no longer look alike. Set the same start and turns, tick decode, and paste the result back to get the message.