2024-04-03 09:54:12 +00:00
|
|
|
use base64::alphabet::STANDARD;
|
|
|
|
use base64::engine::general_purpose::GeneralPurpose;
|
|
|
|
use base64::engine::general_purpose::GeneralPurposeConfig;
|
|
|
|
use base64::engine::DecodePaddingMode;
|
2023-02-09 10:54:52 +00:00
|
|
|
|
2024-04-03 09:54:12 +00:00
|
|
|
pub use base64::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);
|