gcdevproxy 0.3.0

GoodCam Device Proxy library
Documentation
1
2
3
4
5
6
use base64::prelude::{Engine, BASE64_URL_SAFE_NO_PAD};

/// Encode given data using URL-safe Base64 encoding with no padding.
pub fn base64url(data: &[u8]) -> String {
    Engine::encode(&BASE64_URL_SAFE_NO_PAD, data)
}