mod http;
#[doc(inline)]
pub use http::{Ja4H, Ja4HComputeError};
fn hash12(s: impl AsRef<str>) -> std::borrow::Cow<'static, str> {
use sha2::{Digest as _, Sha256};
let s = s.as_ref();
if s.is_empty() {
"000000000000".into()
} else {
let sha256 = Sha256::digest(s);
hex::encode(&sha256.as_slice()[..6]).into()
}
}