pub fn hex_or_base64(s: &str) -> Result<Vec<u8>, DecodeError>Expand description
Parse a string which may be base64 or hex-encoded.
An even-length string with exclusively lowercase hex characters will be parsed as hex; failing that, it will be parsed as base64 and return an error accordingly.