Practical Cryptography: "Beaufort Cipher"

Read this page, which discusses the Beaufort Cipher. Go through the algorithm and JavaScript example.