Function cyclic_xor

Source
pub fn cyclic_xor<D: AsMut<[u8]>, K: AsRef<[u8]>>(data: D, key: K)
Expand description

Applies XOR operation (byte ^ key_byte) for each byte in data and key_byte in key, which is cycled to fit the length of the data.

This function is its own inverse.