Module cipher_crypt::rot13 [] [src]

ROT13 ("rotate by 13 places"), is a simple implementation of the Caesar cipher. It substitutes a letter with the one 13 places after it in the alphabet.

ROT13 is its own inverse. That is, ROT13(ROT13(message)) = message. Due to its simplicity, this module does not implement the Cipher trait.

Functions

apply

Encrypt or decrypt a message using the ROT13 substitute cipher.