/external/python/cpython2/Lib/test/ |
D | test_base64.py | 3 import base64 10 eq(base64.encodestring("www.python.org"), "d3d3LnB5dGhvbi5vcmc=\n") 11 eq(base64.encodestring("a"), "YQ==\n") 12 eq(base64.encodestring("ab"), "YWI=\n") 13 eq(base64.encodestring("abc"), "YWJj\n") 14 eq(base64.encodestring(""), "") 15 eq(base64.encodestring("abcdefghijklmnopqrstuvwxyz" 22 eq(base64.encodestring(bytearray('abc')), 'YWJj\n') 26 eq(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n"), "www.python.org") 27 eq(base64.decodestring("YQ==\n"), "a") [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_base64.py | 3 import base64 23 base64.encodestring(b"www.python.org") 27 base64.decodestring(b"d3d3LnB5dGhvbi5vcmc=\n") 31 eq(base64.encodebytes(b"www.python.org"), b"d3d3LnB5dGhvbi5vcmc=\n") 32 eq(base64.encodebytes(b"a"), b"YQ==\n") 33 eq(base64.encodebytes(b"ab"), b"YWI=\n") 34 eq(base64.encodebytes(b"abc"), b"YWJj\n") 35 eq(base64.encodebytes(b""), b"") 36 eq(base64.encodebytes(b"abcdefghijklmnopqrstuvwxyz" 43 eq(base64.encodebytes(bytearray(b'abc')), b'YWJj\n') [all …]
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 21 import static com.google.common.io.BaseEncoding.base64; 48 testEncodes(base64().withSeparator("\n", 3), "foobar", "Zm9\nvYm\nFy"); in testSeparatorsExplicitly() 49 testEncodes(base64().withSeparator("$", 4), "foobar", "Zm9v$YmFy"); in testSeparatorsExplicitly() 55 base64().withSeparator("=", 3); in testSeparatorSameAsPadChar() 61 base64().withPadChar('#').withSeparator("!#!", 3); in testSeparatorSameAsPadChar() 68 BaseEncoding separated = base64().withSeparator("\n", 3); in testAtMostOneSeparator() 78 testEncodingWithSeparators(base64(), "", ""); in testBase64() 79 testEncodingWithSeparators(base64(), "f", "Zg=="); in testBase64() 80 testEncodingWithSeparators(base64(), "fo", "Zm8="); in testBase64() 81 testEncodingWithSeparators(base64(), "foo", "Zm9v"); in testBase64() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 21 import static com.google.common.io.BaseEncoding.base64; 48 testEncodes(base64().withSeparator("\n", 3), "foobar", "Zm9\nvYm\nFy"); in testSeparatorsExplicitly() 49 testEncodes(base64().withSeparator("$", 4), "foobar", "Zm9v$YmFy"); in testSeparatorsExplicitly() 55 base64().withSeparator("=", 3); in testSeparatorSameAsPadChar() 61 base64().withPadChar('#').withSeparator("!#!", 3); in testSeparatorSameAsPadChar() 68 BaseEncoding separated = base64().withSeparator("\n", 3); in testAtMostOneSeparator() 78 testEncodingWithSeparators(base64(), "", ""); in testBase64() 79 testEncodingWithSeparators(base64(), "f", "Zg=="); in testBase64() 80 testEncodingWithSeparators(base64(), "fo", "Zm8="); in testBase64() 81 testEncodingWithSeparators(base64(), "foo", "Zm9v"); in testBase64() [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | Base64.java | 31 private static byte[] base64 = { field in Base64 59 for (int idx = 0; idx < base64.length; idx++) 61 ascii[base64[idx]] = (byte) idx; 125 dst[didx++] = base64[bits6]; in encode() 127 dst[didx++] = base64[bits6]; in encode() 129 dst[didx++] = base64[bits6]; in encode() 131 dst[didx++] = base64[bits6]; in encode() 144 dst[didx++] = base64[bits6]; in encode() 146 dst[didx++] = base64[bits6]; in encode() 148 dst[didx++] = base64[bits6]; in encode() [all …]
|
/external/python/cryptography/tests/ |
D | test_fernet.py | 7 import base64 86 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) 88 f.decrypt(base64.urlsafe_b64encode(b"\x81")) 91 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) 93 f.decrypt(base64.urlsafe_b64encode(b"\x80abc")) 96 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) 101 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) 108 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) 123 Fernet(base64.urlsafe_b64encode(b"abc"), backend=backend) 126 f = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) [all …]
|
/external/v8/src/inspector/ |
D | string-util.cc | 59 Binary Binary::fromBase64(const String& base64, bool* success) { in fromBase64() argument 60 if (base64.isEmpty()) { in fromBase64() 67 if (base64.length() % 4 != 0 || base64.length() + 4 < base64.length()) { in fromBase64() 72 result.reserve(3 * base64.length() / 4); in fromBase64() 75 for (size_t i = 0; i < base64.length(); i += 4) { in fromBase64() 77 if (!DecodeByte(base64[i + 0]).To(&a)) return Binary::fromSpan(nullptr, 0); in fromBase64() 78 if (!DecodeByte(base64[i + 1]).To(&b)) return Binary::fromSpan(nullptr, 0); in fromBase64() 79 if (!DecodeByte(base64[i + 2]).To(&c)) { in fromBase64() 81 if (i + 4 < base64.length() || base64[i + 2] != pad || in fromBase64() 82 base64[i + 3] != pad) { in fromBase64() [all …]
|
/external/curl/lib/ |
D | http_ntlm.c | 118 char *base64 = NULL; in Curl_output_ntlm() local 194 ntlm, &base64, in Curl_output_ntlm() 199 if(base64) { in Curl_output_ntlm() 203 base64); in Curl_output_ntlm() 204 free(base64); in Curl_output_ntlm() 215 ntlm, &base64, &len); in Curl_output_ntlm() 219 if(base64) { in Curl_output_ntlm() 223 base64); in Curl_output_ntlm() 224 free(base64); in Curl_output_ntlm()
|
/external/python/cpython2/Lib/encodings/ |
D | base64_codec.py | 9 import codecs, base64 24 output = base64.encodestring(input) 42 output = base64.decodestring(input) 55 return base64.encodestring(input) 60 return base64.decodestring(input)
|
/external/python/cpython3/Lib/encodings/ |
D | base64_codec.py | 9 import base64 15 return (base64.encodebytes(input), len(input)) 19 return (base64.decodebytes(input), len(input)) 30 return base64.encodebytes(input) 35 return base64.decodebytes(input)
|
/external/dynamic_depth/internal/strings/ |
D | escaping.cc | 419 int szdest, const char* base64, bool do_padding) { in Base64EscapeInternal() argument 431 cur_dest[0] = base64[cur_src[0] >> 2]; in Base64EscapeInternal() 432 cur_dest[1] = base64[((cur_src[0] & 0x03) << 4) + (cur_src[1] >> 4)]; in Base64EscapeInternal() 433 cur_dest[2] = base64[((cur_src[1] & 0x0f) << 2) + (cur_src[2] >> 6)]; in Base64EscapeInternal() 434 cur_dest[3] = base64[cur_src[2] & 0x3f]; in Base64EscapeInternal() 450 cur_dest[0] = base64[cur_src[0] >> 2]; in Base64EscapeInternal() 451 cur_dest[1] = base64[(cur_src[0] & 0x03) << 4]; in Base64EscapeInternal() 464 cur_dest[0] = base64[cur_src[0] >> 2]; in Base64EscapeInternal() 465 cur_dest[1] = base64[((cur_src[0] & 0x03) << 4) + (cur_src[1] >> 4)]; in Base64EscapeInternal() 466 cur_dest[2] = base64[(cur_src[1] & 0x0f) << 2]; in Base64EscapeInternal()
|
/external/python/pyasn1-modules/pyasn1_modules/ |
D | pem.py | 7 import base64 42 substrate = ''.join([base64.b64decode(x) for x in certLines]) 44 substrate = ''.encode().join([base64.b64decode(x.encode()) for x in certLines]) 59 return base64.b64decode(text) 61 return base64.b64decode(text.encode())
|
/external/python/cpython3/Lib/test/test_email/data/ |
D | msg_39.txt | 16 Content-Transfer-Encoding: base64 24 Content-Transfer-Encoding: base64 38 Content-Transfer-Encoding: base64 46 Content-Transfer-Encoding: base64 60 Content-Transfer-Encoding: base64 68 Content-Transfer-Encoding: base64
|
/external/python/cpython2/Lib/email/test/data/ |
D | msg_39.txt | 16 Content-Transfer-Encoding: base64 24 Content-Transfer-Encoding: base64 38 Content-Transfer-Encoding: base64 46 Content-Transfer-Encoding: base64 60 Content-Transfer-Encoding: base64 68 Content-Transfer-Encoding: base64
|
/external/ImageMagick/coders/ |
D | inline.c | 281 *base64, in WriteINLINEImage() local 339 base64=Base64Encode(blob,blob_length,&encode_length); in WriteINLINEImage() 341 if (base64 == (char *) NULL) in WriteINLINEImage() 349 base64=DestroyString(base64); in WriteINLINEImage() 355 (void) WriteBlobString(image,base64); in WriteINLINEImage() 356 base64=DestroyString(base64); in WriteINLINEImage()
|
/external/autotest/client/cros/image_comparison/ |
D | publisher.py | 5 import base64 51 base64_images["golden"] = base64.b64encode(image_file.read()) 53 base64_images["test"] = base64.b64encode(image_file.read()) 55 base64_images["diff"] = base64.b64encode(image_file.read()) 78 b64img = base64.b64encode(image_file.read())
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/ |
D | MANIFEST | 195 tests/yui/dataurl-base64-doublequotes.css 196 tests/yui/dataurl-base64-doublequotes.css.min 197 tests/yui/dataurl-base64-eof.css 198 tests/yui/dataurl-base64-eof.css.min 199 tests/yui/dataurl-base64-linebreakindata.css 200 tests/yui/dataurl-base64-linebreakindata.css.min 201 tests/yui/dataurl-base64-noquotes.css 202 tests/yui/dataurl-base64-noquotes.css.min 203 tests/yui/dataurl-base64-singlequotes.css 204 tests/yui/dataurl-base64-singlequotes.css.min [all …]
|
/external/scapy/scapy/ |
D | compat.py | 12 import base64 128 return base64.decodestring(x) 129 return base64.decodebytes(raw(x)) 134 return base64.encodestring(x).replace('\n', '') 135 return base64.encodebytes(raw(x)).replace(b'\n', b'')
|
/external/python/cpython2/Doc/library/ |
D | base64.rst | 1 :mod:`base64` --- RFC 3548: Base16, Base32, Base64 Data Encodings 4 .. module:: base64 9 pair: base64; encoding 10 single: MIME; base64 encoding 137 Decode the string *s*, which must contain one or more lines of base64 encoded 143 Encode the contents of the *input* file and write the resulting base64 encoded 153 string containing one or more lines of base64-encoded data. 155 base64-encoded data always including an extra trailing newline (``'\n'``). 159 >>> import base64 160 >>> encoded = base64.b64encode('data to be encoded') [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | base64_ops_test.py | 22 import base64 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)
|
/external/python/oauth2client/tests/contrib/ |
D | test_xsrfutil.py | 17 import base64 74 expected_token = base64.urlsafe_b64encode( 109 expected_token = base64.urlsafe_b64encode( 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/boringssl/src/decrepit/bio/ |
D | base64_bio.c | 86 EVP_ENCODE_CTX base64; member 141 EVP_DecodeInit(&ctx->base64); in b64_read() 217 k = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &num, p, in b64_read() 221 EVP_DecodeInit(&ctx->base64); in b64_read() 229 EVP_DecodeInit(&ctx->base64); in b64_read() 288 i = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, in b64_read() 332 EVP_EncodeInit(&(ctx->base64)); in b64_write() 401 EVP_EncodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &ctx->buf_len, in b64_write() 457 if ((ret == 0) && (ctx->encode != B64_NONE) && (ctx->base64.data_used != 0)) { in b64_ctrl() 489 } else if (ctx->encode != B64_NONE && ctx->base64.data_used != 0) { in b64_ctrl() [all …]
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | json_objectwriter.cc | 152 std::string base64; in RenderBytes() local 155 WebSafeBase64EscapeWithPadding(value.ToString(), &base64); in RenderBytes() 157 Base64Escape(value, &base64); in RenderBytes() 163 stream_->WriteRaw(base64.data(), base64.size()); in RenderBytes()
|
/external/python/cpython3/Lib/email/ |
D | _encoded_words.py | 43 import base64 107 base64.b64decode(encoded + missing_padding, validate=True), 118 base64.b64decode(encoded, validate=False), 126 base64.b64decode(encoded + b'==', validate=False), 139 return base64.b64encode(bstring).decode('ascii')
|
/external/tensorflow/tensorflow/core/lib/strings/ |
D | BUILD | 21 name = "base64", 22 hdrs = ["base64.h"], 24 "//tensorflow/core/platform:base64", 117 "base64.h", 130 "base64.h", 177 "base64.h",
|