Module cipher_crypt::rot13

source ·
Expand description

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

Decrypt a message using the Rot13 substitute cipher.
Encrypt a message using the Rot13 substitute cipher.