Home
last modified time | relevance | path

Searched refs:b64encode (Results 1 – 18 of 18) sorted by relevance

/third_party/python/Lib/test/
Dtest_base64.py108 self.check_nonbyte_element_format(base64.b64encode, bytes_data)
109 self.check_multidimensional(base64.b64encode, bytes_data)
128 eq(base64.b64encode(b"www.python.org"), b"d3d3LnB5dGhvbi5vcmc=")
129 eq(base64.b64encode(b'\x00'), b'AA==')
130 eq(base64.b64encode(b"a"), b"YQ==")
131 eq(base64.b64encode(b"ab"), b"YWI=")
132 eq(base64.b64encode(b"abc"), b"YWJj")
133 eq(base64.b64encode(b""), b"")
134 eq(base64.b64encode(b"abcdefghijklmnopqrstuvwxyz"
141 eq(base64.b64encode(b'\xd3V\xbeo\xf7\x1d', altchars=b'*$'), b'01a*b$cd')
[all …]
Dtest_urllib2_localnet.py210 ENCODED_AUTH = base64.b64encode(USER_PASSWD.encode('ascii')).decode('ascii')
Dtest_urllib.py23 from base64 import b64encode
584 b64encode(userpass.encode("ASCII")).decode("ASCII"))
Dtest_httpservers.py790 base64.b64encode(b'username:pass')}
/third_party/grpc/examples/python/cancellation/
Dsearch.py66 return base64.b64encode(hasher.digest()).decode('ascii')
136 secret=base64.b64encode(secret),
142 secret=base64.b64encode(secret),
/third_party/python/Lib/email/
Dbase64mime.py37 from base64 import b64encode
71 encoded = b64encode(header_bytes).decode("ascii")
D_encoded_words.py139 return base64.b64encode(bstring).decode('ascii')
/third_party/flutter/skia/tools/lua/
Dtrigger_ct_lua31 script_contents = urllib.quote(base64.b64encode(f.read()))
37 body += '&lua_aggregator=%s' % urllib.quote(base64.b64encode(f.read()))
/third_party/python/Lib/
Dbase64.py51 def b64encode(s, altchars=None): function
95 return b64encode(s)
118 return b64encode(s).translate(_urlsafe_encode_translation)
/third_party/glib/gobject/tests/
Dtaptestrunner.py123 " File-Content: " + base64.b64encode(output) + "\n"
/third_party/glib/gio/tests/
Dtaptestrunner.py123 " File-Content: " + base64.b64encode(output) + "\n"
/third_party/python/Doc/library/
Dbase64.rst51 .. function:: b64encode(s, altchars=None)
283 >>> encoded = base64.b64encode(b'data to be encoded')
Dhashlib.rst648 >>> from base64 import b64decode, b64encode
652 >>> print(b64encode(enc_key).decode('utf-8'))
654 >>> print(b64encode(mac_key).decode('utf-8'))
/third_party/python/Lib/urllib/
Drequest.py818 creds = base64.b64encode(user_pass.encode()).decode("ascii")
1016 auth = "Basic " + base64.b64encode(raw.encode()).decode("ascii")
1916 proxy_auth = base64.b64encode(proxy_passwd.encode()).decode('ascii')
1922 auth = base64.b64encode(user_passwd.encode()).decode('ascii')
/third_party/protobuf/python/google/protobuf/
Djson_format.py300 return base64.b64encode(value).decode('utf-8')
/third_party/grpc/templates/src/objective-c/
DBoringSSL-GRPC.podspec.template27 prefix_gz_b64 = base64.b64encode(prefix_gz)
/third_party/python/Lib/logging/
Dhandlers.py1254 s = 'Basic ' + base64.b64encode(s).strip().decode('ascii')
/third_party/python/Misc/NEWS.d/
D3.6.0a1.rst2686 Add an optional newline parameter to binascii.b2a_base64(). base64.b64encode()