pub fn encode_hex(data: &str) -> Result<String, Box<dyn Error>>
Expand description
Encodes a string into hexadecimal format.
ยงExamples
use nutek_encode_lib::encoder;
let encoded = encoder::encode_hex("hello").unwrap();
assert_eq!(encoded, "68656c6c6f");