pub fn repeating_xor_key(b: &[u8]) -> Vec<u8> {
    const KEY: &'static str = "ICE";

    let mut result = Vec::new();

    for i in 0..b.len() {
        result.push(b[i] ^ KEY.bytes().nth(i % KEY.len()).unwrap());
    }

    result
}
/// Repeating XOR-Key
///
/// Solution for problem 5 from set1: <https://cryptopals.com/sets/1/challenges/5>
Repeating XOR-Key
Solution for problem 5 from set1.
Repeating XOR - Key Solution for problem 5 from set1 .
pub fn repeating_xor_key(b: &[u8]) -> Vec<u8> {
    const KEY: &'static str = "ICE";
    let mut result = Vec::new();
    for i in 0..b.len() {
        result.push(b[i] ^ KEY.bytes().nth(i % KEY.len()).unwrap());
    }
    result
}
pub fn repeating_xor_key ( b : & [ u8 ] ) -> Vec < u8 > { const KEY : & ' static str = " " ; let mut result = Vec :: new ( ) ; for i in 0 .. b . len ( ) { result . push ( b [ i ] ^ KEY . bytes ( ) . nth ( i % KEY . len ( ) ) . unwrap ( ) ) ; } result }
Repeating XOR-Key
Solution for problem 5 from set1: <https://cryptopals.com/sets/1/challenges/5>
Repeating XOR - Key Solution for problem 5 from set1 : <https : // cryptopals . com / sets / 1 / challenges / 5 >
b
&[u8]