MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / base64_url_encode

Function base64_url_encode

nodedb/src/control/security/jwt.rs:341–344  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

339 }
340
341 fn base64_url_encode(data: &[u8]) -> String {
342 use base64::Engine;
343 base64::engine::general_purpose::URL_SAFE_NO_PAD.encode(data)
344 }
345
346 /// Bit length used for RSA keys generated in this test module.
347 /// Production validates whatever the operator configures; the

Callers 4

base64url_decode_worksFunction · 0.85
rs256_roundtripFunction · 0.85
rs256_wrong_key_rejectedFunction · 0.85

Calls 1

encodeMethod · 0.45

Tested by 4

base64url_decode_worksFunction · 0.68
rs256_roundtripFunction · 0.68
rs256_wrong_key_rejectedFunction · 0.68