previous | start | next

One-Time Pads

Another approach (although rarely used) is the one-time pad, (or Vernam Cipher) where a simple algorithm is used in conjunction with a key of the same length as the message, and employing a brand new key for every message transmitted.
 
For example, convert both the plaintext and the key to bit strings (which will be, necessarily, of the same length). Apply the XOR function function bitwise between the strings, giving the ciphertext. The recipient can then apply the same key to the ciphertext using XOR function and thus recover the original plaintext.
 
This is, in every respect, unbreakable, but rather impractical for real-world use in most cases. Some reasons:
 

 
Neverthless, see s/key for a practical, working example of a one-time pad system.
 


previous | start | next