Capt. Horatio T.P. Webb
A Simple Encrypter/Decrypter (Vernam Cipher) in javascript

Parks -- FALL 1998
Last Updated 12PM 2/4/2014

1.Enter a Key below (any text):
2.Enter Plain Text below (any text):
(XOR the Key (1 above) and the Plain Text (2 above) to create the Cipher Text below)
3.Cipher Text (this is the encrypted message you send):
(XOR the Cipher Text (3 above) with the Key (1 above) to recover the Plain Text)
4.Recovered Plain Text (this is the decoded message):

This form of encryption is called a "Vernam Cipher"

aka:

  • "Not Equal (NEQ)",
  • "modulo 2 addition (without 'carry')",
  • "modulo 2 subtraction (without 'borrow')"

Encryption invented by Gilbert Sandford Vernam (1890-1960).

Text quote by Thomas Paine, The Crisis, Dec 23 1776