1 2 3 4 5 6
pub fn unhex(value: &str) -> Vec<u8> { (0..value.len()) .step_by(2) .map(|index| u8::from_str_radix(&value[index..index + 2], 16).unwrap()) .collect() }