Skip to main content

caesar_cipher

Function caesar_cipher 

Source
pub fn caesar_cipher(text: &[u8], shift: u8) -> Vec<u8> 
Expand description

Caesar cipher encryption: shifts each byte by shift (mod 256).

§WARNING

The Caesar cipher has zero security. It is broken by simple frequency analysis and is included here purely for educational illustration.