Function decode_string_to_binary

Source
pub fn decode_string_to_binary(data: &str) -> Vec<u8> 
Expand description

Returns a vector from a base32h encoded string

§Arguments

  • data - string slice to decode

§Examples

use base32h::{decode_string_to_binary};
assert_eq!(decode_string_to_binary("zZzZzZzZ"), Vec::from([255, 255, 255, 255, 255]));