macro_toolset

Macro b64_decode

Source
macro_rules! b64_decode {
    ($data:expr) => { ... };
    ($data:expr, $padding:path) => { ... };
}
Expand description

Base64 decode

§Param:

  • data
  • padding: base64::engine::general_purpose::{}, STANDARD(default) / STANDARD_NO_PAD / URL_SAFE / URL_SAFE_NO_PAD

§Example:

// "hello world"
b64_decode!("aGVsbG8gd29ybGQ=")