Rot 13: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Bruce M. Tindall
mNo edit summary
imported>Sandy Harris
No edit summary
Line 1: Line 1:
{{subpages}}
{{subpages}}
'''Rot 13''' is a [[Caesar cipher]] that is never used for real security. It simply replaces every letter with the letter that 13 comes 13 later in the alphabet, mathematically
'''Rot 13''' is a [[Caesar cipher]] that is never used for real security. It simply replaces every letter with the letter that comes 13 later in the alphabet, mathematically


  x = (x+13) modulo 26.
  x = (x+13) modulo 26.
Line 8: Line 8:
  input    abcdefghijklmnopqrstuvwxyz
  input    abcdefghijklmnopqrstuvwxyz
  output  nopqrstuvwxyzabcdefghijklm
  output  nopqrstuvwxyzabcdefghijklm
The decryption uses exactly the same code. Rot 13 is its own inverse, since (x+13)+13 = x modulo 26.


Rot 13 is but fairly commonly used in [[Usenet news]] postings or [[email]]. If a post gives away something the ending of a movie or the punch line of a joke, it is said to contain a "spoiler". Some readers might wish not to read that, because it would spoil their enjoyment of the film. On the other hand, the writer may consider mentioning it essential to the discussion. The solution is to rot-13 encrypt that part of the message and let readers decide whether to decrypt and read it.
Rot 13 is but fairly commonly used in [[Usenet news]] postings or [[email]]. If a post gives away something the ending of a movie or the punch line of a joke, it is said to contain a "spoiler". Some readers might wish not to read that, because it would spoil their enjoyment of the film. On the other hand, the writer may consider mentioning it essential to the discussion. The solution is to rot-13 encrypt that part of the message and let readers decide whether to decrypt and read it.

Revision as of 22:51, 7 August 2009

This article is developed but not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable, developed Main Article is subject to a disclaimer.

Rot 13 is a Caesar cipher that is never used for real security. It simply replaces every letter with the letter that comes 13 later in the alphabet, mathematically

x = (x+13) modulo 26.

So the encryption is:

input    abcdefghijklmnopqrstuvwxyz
output   nopqrstuvwxyzabcdefghijklm

The decryption uses exactly the same code. Rot 13 is its own inverse, since (x+13)+13 = x modulo 26.

Rot 13 is but fairly commonly used in Usenet news postings or email. If a post gives away something the ending of a movie or the punch line of a joke, it is said to contain a "spoiler". Some readers might wish not to read that, because it would spoil their enjoyment of the film. On the other hand, the writer may consider mentioning it essential to the discussion. The solution is to rot-13 encrypt that part of the message and let readers decide whether to decrypt and read it.