Skip to main content

xor

Function xor 

Source
pub fn xor(a: &str, b: &str) -> Result<String>
Expand description

XOR two hex strings of equal length

ยงExample

use dodecet_encoder::hex;

let result = hex::xor("FFF", "123").unwrap();
assert_eq!(result, "EDC");