XOR between two byte arrays

let arrayA = [UInt8](arrayLiteral: 0xab, 0x12, 0x23) let arrayB = [UInt8](arrayLiteral: 0x22, 0xda, 0xfa) let result = arrayA.enumerate().map {$0.element ^ arrayB[$0.index]}

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.