Function profligate::caesar::decrypt[][src]

pub fn decrypt(text: &mut str, key: i16) -> Result<(), CaesarError>

Decrypt a string of text with the given key. Under the hood, this is the same as encrypting with the negative key, thanks to the Caesar cipher’s properties.