/external/python/cpython2/Lib/test/ |
D | test_base64.py | 66 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/ |
D | test_base64.py | 108 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/ |
D | test_xsrfutil.py | 135 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/ |
D | base64mime.py | 37 from base64 import b64encode 71 encoded = b64encode(header_bytes).decode("ascii")
|
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/ta_prod_signing_scripts/ |
D | generate_digest.py | 78 print("Digest is:", base64.b64encode(dig)) 86 dig_out.write(base64.b64encode(dig))
|
D | stitch_ta.py | 86 print("Digest is", base64.b64encode(dig))
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | D_S_I_G_.py | 104 def b64encode(b): function 105 s = base64.b64encode(b) 122 writer.write_noindent(b64encode(self.pkcs7))
|
/external/skqp/tools/lua/ |
D | trigger_ct_lua | 31 script_contents = urllib.quote(base64.b64encode(f.read())) 37 body += '&lua_aggregator=%s' % urllib.quote(base64.b64encode(f.read()))
|
/external/python/cpython2/Lib/ |
D | base64.py | 43 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/ |
D | md5sum.py | 60 compressed_paths = base64.b64encode(mem_file.getvalue()) 113 compressed_paths = base64.b64encode(mem_file.getvalue())
|
/external/oss-fuzz/infra/build/functions/ |
D | build_lib.py | 114 signature = base64.b64encode(creds.sign_blob(blob)[1]) 127 'payload': base64.b64encode(blob.encode('utf-8')).decode('utf-8'),
|
/external/tensorflow/third_party/gpus/ |
D | compress_find_cuda_config.py | 29 b64encoded = base64.b64encode(compressed)
|
D | compress_find_rocm_config.py | 29 b64encoded = base64.b64encode(compressed)
|
/external/pigweed/pw_tokenizer/py/ |
D | detokenize_test.py | 183 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/ |
D | test_crypt.py | 274 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/ |
D | models.py | 61 return encoding.smart_text(base64.b64encode(pickle.dumps(value)))
|
/external/pigweed/pw_env_setup/py/pw_env_setup/cipd_setup/ |
D | wrapper.py | 190 base64.b64encode(auth.encode()).decode()) 192 headers['Proxy-Authorization'] = 'Basic ' + base64.b64encode(auth)
|
/external/python/apitools/apitools/base/protorpclite/ |
D | protojson.py | 167 value = [base64.b64encode(byte) for byte in value] 169 value = base64.b64encode(value)
|
/external/python/cpython3/Lib/ |
D | base64.py | 51 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/ |
D | encode.py | 95 return prefix + base64.b64encode(data).decode()
|
/external/ipsec-tools/src/racoon/ |
D | getcertsbyname.c | 347 b64encode(p, len) in b64encode() function 409 b64encode(p->ci_cert, p->ci_certlen);
|
/external/llvm-project/libcxx/test/libcxx/selftest/dsl/ |
D | lit.local.cfg | 13 base64Encode = lambda s: lit.util.to_string(base64.b64encode(lit.util.to_bytes(s)))
|
/external/python/oauth2client/tests/contrib/django_util/ |
D | test_django_models.py | 40 base64.b64encode(pickle.dumps(self.credentials)))
|
/external/autotest/site_utils/ |
D | cloud_console_client_unittest.py | 46 self.assertEquals(base64.b64encode(
|
/external/python/asn1crypto/asn1crypto/ |
D | pem.py | 98 b64_bytes = base64.b64encode(der_bytes)
|