MCPcopy Create free account
hub / github.com/Keats/jsonwebtoken / b64_encode

Function b64_encode

src/serialization.rs:7–9  ·  view source on GitHub ↗
(input: T)

Source from the content-addressed store, hash-verified

5
6#[inline]
7pub(crate) fn b64_encode<T: AsRef<[u8]>>(input: T) -> String {
8 URL_SAFE_NO_PAD.encode(input)
9}
10
11#[inline]
12pub(crate) fn b64_decode<T: AsRef<[u8]>>(input: T) -> Result<Vec<u8>> {

Callers 7

encodeFunction · 0.85
b64_encode_partFunction · 0.85
from_encoding_keyMethod · 0.85
from_decoding_keyMethod · 0.85
thumbprintMethod · 0.85
check_hs256Function · 0.85
signFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected