Classical cipher
Running Key Cipher
Encrypt or decrypt with a long, non-repeating text key. Message formatting is preserved, while only A-Z letters advance the key stream.
How the arithmetic works
Letters use values A=0 through Z=25. Each message letter is paired with the next usable key letter.
Encrypt: C = (P + K) mod 26Decrypt: P = (C - K + 26) mod 26
Running key, not repeating Vigenère
A repeating Vigenère cipher cycles a short keyword. A running key uses consecutive letters from a longer external passage and stops if that passage is too short.
For education and puzzles: natural-language running keys are not secure modern encryption.