Function cipher_crypt::rot13::apply [] [src]

pub fn apply(message: &str) -> String

Encrypt or decrypt a message using the ROT13 substitute cipher.

Examples

Basic usage:

use cipher_crypt::rot13;

let m = "I am my own inverse";
assert_eq!(m, rot13::apply(&rot13::apply(m)));