MCPcopy Create free account
hub / github.com/mpdavis/python-jose / base64url_encode

Function base64url_encode

jose/utils.py:81–88  ·  view source on GitHub ↗

Helper method to base64url_encode a string. Args: input (bytes): A base64url_encoded string (bytes) to encode.

(input)

Source from the content-addressed store, hash-verified

79
80
81def base64url_encode(input):
82 """Helper method to base64url_encode a string.
83
84 Args:
85 input (bytes): A base64url_encoded string (bytes) to encode.
86
87 """
88 return base64.urlsafe_b64encode(input).replace(b"=", b"")
89
90
91def timedelta_total_seconds(delta):

Callers 10

_encode_headerFunction · 0.90
_encode_payloadFunction · 0.90
_sign_header_and_claimsFunction · 0.90
to_dictMethod · 0.90
_encoded_headerFunction · 0.85
_jwe_compact_serializeFunction · 0.85
calculate_at_hashFunction · 0.85
to_dictMethod · 0.85
to_dictMethod · 0.85
to_dictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…