2023-06-09 13:45:07 +00:00
|
|
|
use base64_lib::alphabet::STANDARD;
|
|
|
|
use base64_lib::engine::general_purpose::GeneralPurpose;
|
|
|
|
use base64_lib::engine::general_purpose::GeneralPurposeConfig;
|
|
|
|
use base64_lib::engine::DecodePaddingMode;
|
2023-02-09 10:54:52 +00:00
|
|
|
|
2023-06-09 13:45:07 +00:00
|
|
|
pub use base64_lib::Engine;
|
2023-02-09 10:54:52 +00:00
|
|
|
|
|
|
|
pub const BASE64: GeneralPurpose = GeneralPurpose::new(&STANDARD, CONFIG);
|
|
|
|
|
|
|
|
pub const CONFIG: GeneralPurposeConfig = GeneralPurposeConfig::new()
|
|
|
|
.with_encode_padding(false)
|
|
|
|
.with_decode_padding_mode(DecodePaddingMode::Indifferent);
|