from_base64

Function from_base64 

Source
pub fn from_base64(s: &str) -> Result<Vec<u8>, DecodeError>
Expand description

Convert base64 string to bytes.

ยงExample

use quantacore::utils::from_base64;

let bytes = from_base64("SGVsbG8=").unwrap();
assert_eq!(bytes, b"Hello");