machines/rust/lib/common/src/base64.rs

6 lines
114 B
Rust
Raw Normal View History

use base64::Engine;
pub fn encode(bytes: &[u8]) -> String {
base64::prelude::BASE64_STANDARD.encode(bytes)
}