Home
last modified time | relevance | path

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

123

/external/python/cpython2/Lib/test/
Dtest_base64.py66 eq(base64.b64encode("www.python.org"), "d3d3LnB5dGhvbi5vcmc=")
67 eq(base64.b64encode('\x00'), 'AA==')
68 eq(base64.b64encode("a"), "YQ==")
69 eq(base64.b64encode("ab"), "YWI=")
70 eq(base64.b64encode("abc"), "YWJj")
71 eq(base64.b64encode(""), "")
72 eq(base64.b64encode("abcdefghijklmnopqrstuvwxyz"
79 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd')
81 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==')
82 self.assertRaises(TypeError, base64.b64encode,
/external/python/cpython3/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 …]
/external/python/oauth2client/tests/contrib/
Dtest_xsrfutil.py135 token = base64.b64encode(b'abc' + xsrfutil.DELIMITER + b'xyz')
143 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
154 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
166 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
187 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
211 token = base64.b64encode(_helpers._to_bytes(str(token_time)))
/external/python/cpython3/Lib/email/
Dbase64mime.py37 from base64 import b64encode
71 encoded = b64encode(header_bytes).decode("ascii")
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/ta_prod_signing_scripts/
Dgenerate_digest.py78 print("Digest is:", base64.b64encode(dig))
86 dig_out.write(base64.b64encode(dig))
Dstitch_ta.py86 print("Digest is", base64.b64encode(dig))
/external/fonttools/Lib/fontTools/ttLib/tables/
DD_S_I_G_.py104 def b64encode(b): function
105 s = base64.b64encode(b)
122 writer.write_noindent(b64encode(self.pkcs7))
/external/skqp/tools/lua/
Dtrigger_ct_lua31 script_contents = urllib.quote(base64.b64encode(f.read()))
37 body += '&lua_aggregator=%s' % urllib.quote(base64.b64encode(f.read()))
/external/python/cpython2/Lib/
Dbase64.py43 def b64encode(s, altchars=None): function
86 return b64encode(s)
107 return b64encode(s).translate(_urlsafe_encode_translation)
/external/chromium-trace/catapult/devil/devil/android/
Dmd5sum.py60 compressed_paths = base64.b64encode(mem_file.getvalue())
113 compressed_paths = base64.b64encode(mem_file.getvalue())
/external/oss-fuzz/infra/build/functions/
Dbuild_lib.py114 signature = base64.b64encode(creds.sign_blob(blob)[1])
127 'payload': base64.b64encode(blob.encode('utf-8')).decode('utf-8'),
/external/tensorflow/third_party/gpus/
Dcompress_find_cuda_config.py29 b64encoded = base64.b64encode(compressed)
Dcompress_find_rocm_config.py29 b64encoded = base64.b64encode(compressed)
/external/pigweed/pw_tokenizer/py/
Ddetokenize_test.py183 self.assertEqual('$' + base64.b64encode(b'1234').decode(),
220 self.assertEqual('$' + base64.b64encode(b'1').decode(),
226 self.assertEqual('$' + base64.b64encode(b'123').decode(),
487 JELLO = b'$' + base64.b64encode(JELLO_WORLD_TOKEN)
490 RECURSION = b'$' + base64.b64encode(
494 RECURSION_2 = b'$' + base64.b64encode(
/external/python/oauth2client/tests/
Dtest_crypt.py274 payload = base64.b64encode(b'{BADJSON')
299 signature = base64.b64encode(signature_bytes)
301 payload = base64.b64encode(b'{"a": "b"}')
/external/python/oauth2client/oauth2client/contrib/django_util/
Dmodels.py61 return encoding.smart_text(base64.b64encode(pickle.dumps(value)))
/external/pigweed/pw_env_setup/py/pw_env_setup/cipd_setup/
Dwrapper.py190 base64.b64encode(auth.encode()).decode())
192 headers['Proxy-Authorization'] = 'Basic ' + base64.b64encode(auth)
/external/python/apitools/apitools/base/protorpclite/
Dprotojson.py167 value = [base64.b64encode(byte) for byte in value]
169 value = base64.b64encode(value)
/external/python/cpython3/Lib/
Dbase64.py51 def b64encode(s, altchars=None): function
95 return b64encode(s)
118 return b64encode(s).translate(_urlsafe_encode_translation)
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Dencode.py95 return prefix + base64.b64encode(data).decode()
/external/ipsec-tools/src/racoon/
Dgetcertsbyname.c347 b64encode(p, len) in b64encode() function
409 b64encode(p->ci_cert, p->ci_certlen);
/external/llvm-project/libcxx/test/libcxx/selftest/dsl/
Dlit.local.cfg13 base64Encode = lambda s: lit.util.to_string(base64.b64encode(lit.util.to_bytes(s)))
/external/python/oauth2client/tests/contrib/django_util/
Dtest_django_models.py40 base64.b64encode(pickle.dumps(self.credentials)))
/external/autotest/site_utils/
Dcloud_console_client_unittest.py46 self.assertEquals(base64.b64encode(
/external/python/asn1crypto/asn1crypto/
Dpem.py98 b64_bytes = base64.b64encode(der_bytes)

123