Searched refs:urlsafe_b64encode (Results 1 – 16 of 16) sorted by relevance
65 base64_msg = [base64.urlsafe_b64encode(m) for m in msg]109 enc = base64.urlsafe_b64encode(msg)115 enc = base64.urlsafe_b64encode(msg)128 enc = base64.urlsafe_b64encode(msg)135 enc = base64.urlsafe_b64encode(msg)146 enc = base64.urlsafe_b64encode(msg)
73 return base64.urlsafe_b64encode(tok).rstrip(b'=').decode('ascii')
111 def urlsafe_b64encode(s): function
98 return base64.urlsafe_b64encode(raw_bytes).rstrip(b'=')
99 eq(base64.urlsafe_b64encode('\xd3V\xbeo\xf7\x1d'), '01a-b_cd')101 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
61 token = base64.urlsafe_b64encode(digest + DELIMITER + when)
74 expected_token = base64.urlsafe_b64encode(109 expected_token = base64.urlsafe_b64encode(
253 'bytes_field': base64.urlsafe_b64encode(non_unicode_message),269 'nextPageToken': base64.urlsafe_b64encode(non_unicode_message),
463 result = [base64.urlsafe_b64encode(byte) for byte in value]465 result = base64.urlsafe_b64encode(value)
534 return base64.urlsafe_b64encode(value)
89 return {'raw': base64.urlsafe_b64encode(message.as_string())}
101 def urlsafe_b64encode(s): function
177 eq(base64.urlsafe_b64encode(b'\xd3V\xbeo\xf7\x1d'), b'01a-b_cd')179 self.check_other_types(base64.urlsafe_b64encode,181 self.check_encode_type_errors(base64.urlsafe_b64encode)
1491 payload = base64.urlsafe_b64encode(body_json).strip(b'=')1624 payload = base64.urlsafe_b64encode(body_json).strip(b'=')1633 payload = base64.urlsafe_b64encode(body_json).strip(b'=')2050 payload = base64.urlsafe_b64encode(body_json).strip(b'=')2051 jwt = (base64.urlsafe_b64encode(b'stuff') + b'.' + payload + b'.' +2052 base64.urlsafe_b64encode(b'signature'))
64 .. function:: urlsafe_b64encode(s)
94 .. function:: urlsafe_b64encode(s)