pub fn b64_to_hex(b: &[u8]) -> Result<Vec<u8>, base64::DecodeError> {
    let b: Vec<_> = b.iter().cloned().filter(|&x| x != b'\n').collect();
    let d = base64::decode(b)?;
    let e = hex::encode(d);

    Ok(e.into_bytes())
}
/// helper function to convert from b64 to hex
helper function to convert from b64 to hex
helper function to convert from b64 to hex
pub fn b64_to_hex(b: &[u8]) -> Result<Vec<u8>, base64::DecodeError> {
    let b: Vec<_> = b.iter().cloned().filter(|&x| x != b'\n').collect();
    let d = base64::decode(b)?;
    let e = hex::encode(d);
    Ok(e.into_bytes())
}
pub fn b64_to_hex ( b : & [ u8 ] ) -> Result < Vec < u8 > , base64 :: DecodeError > { let b : Vec < _ > = b . iter ( ) . cloned ( ) . filter ( | & x | x != b'\n' ) . collect ( ) ; let d = base64 :: decode ( b ) ? ; let e = hex :: encode ( d ) ; Ok ( e . into_bytes ( ) ) }
helper function to convert from b64 to hex
helper function to convert from b64 to hex
b
&[u8]