pub fn encrypt(bytes: &[u8]) -> Vec<u8> {
    let mut key = INITIAL_KEY;
    bytes
        .iter()
        .map(|byte| {
            key ^= *byte;
            key
        })
        .collect()
}
/// Encrypts input bytes where each byte is XOR'ed with the previous encrypted byte.
Encrypts input bytes where each byte is XOR'ed with the previous encrypted byte.
Encrypts input bytes where each byte is XOR ' ed with the previous encrypted byte .
pub fn encrypt(bytes: &[u8]) -> Vec<u8> {
    let mut key = INITIAL_KEY;
    bytes
        .iter()
        .map(|byte| {
            key ^= *byte;
            key
        })
        .collect()
}
pub fn encrypt ( bytes : & [ u8 ] ) -> Vec < u8 > { let mut key = INITIAL_KEY ; bytes . iter ( ) . map ( | byte | { key ^= * byte ; key } ) . collect ( ) }
Encrypts input bytes where each byte is XOR'ed with the previous encrypted byte.
Encrypts input bytes where each byte is XOR ' ed with the previous encrypted byte .
bytes
&[u8]
bytes
&[u8]