alphabet.rs |
Provides [Alphabet] and constants for alphabets commonly used in the wild. |
8517 |
chunked_encoder.rs |
|
5376 |
decode.rs |
|
11747 |
display.rs |
Enables base64'd output anywhere you might use a `Display` implementation, like a format string.
```
use base64::{display::Base64Display, engine::general_purpose::STANDARD};
let data = vec![0x0, 0x1, 0x2, 0x3];
let wrapper = Base64Display::new(&data, &STANDARD);
assert_eq!("base64: AAECAw==", format!("base64: {}", wrapper));
``` |
2731 |
encode.rs |
|
15592 |
engine |
|
|
lib.rs |
|
6882 |
prelude.rs |
Preconfigured engines for common use cases.
These are re-exports of `const` engines in [crate::engine::general_purpose], renamed with a `BASE64_`
prefix for those who prefer to `use` the entire path to a name.
# Examples
```
use base64::prelude::{Engine as _, BASE64_STANDARD_NO_PAD};
assert_eq!("c29tZSBieXRlcw", &BASE64_STANDARD_NO_PAD.encode(b"some bytes"));
``` |
751 |
read |
|
|
tests.rs |
|
3274 |
write |
|
|