pub fn encode(input: &[u8]) -> String
alloc
Constant-Time Hex Encoding
input
The hex-encoded String
String
use wolf_crypto::{hex, ct_eq}; let encoded = hex::encode(b"hello world"); let decoded = hex::decode(encoded.as_bytes()).unwrap(); assert!(ct_eq(b"hello world", decoded));