/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/guava-gwt/test-super/com/google/common/io/super/com/google/common/io/ |
D | BaseEncodingTest.java | 20 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() 56 base64().withSeparator("=", 3); in testSeparatorSameAsPadChar() 61 base64().withPadChar('#').withSeparator("!#!", 3); in testSeparatorSameAsPadChar() 68 BaseEncoding separated = base64().withSeparator("\n", 3); in testAtMostOneSeparator() 77 testEncodingWithSeparators(base64(), "", ""); in testBase64() 78 testEncodingWithSeparators(base64(), "f", "Zg=="); in testBase64() 79 testEncodingWithSeparators(base64(), "fo", "Zm8="); in testBase64() 80 testEncodingWithSeparators(base64(), "foo", "Zm9v"); in testBase64() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 20 import static com.google.common.io.BaseEncoding.base64; 54 testEncodes(base64().withSeparator("\n", 3), "foobar", "Zm9\nvYm\nFy"); in testSeparatorsExplicitly() 55 testEncodes(base64().withSeparator("$", 4), "foobar", "Zm9v$YmFy"); in testSeparatorsExplicitly() 62 base64().withSeparator("=", 3); in testSeparatorSameAsPadChar() 67 base64().withPadChar('#').withSeparator("!#!", 3); in testSeparatorSameAsPadChar() 74 BaseEncoding separated = base64().withSeparator("\n", 3); in testAtMostOneSeparator() 83 testEncodingWithSeparators(base64(), "", ""); in testBase64() 84 testEncodingWithSeparators(base64(), "f", "Zg=="); in testBase64() 85 testEncodingWithSeparators(base64(), "fo", "Zm8="); in testBase64() 86 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/curl/lib/ |
D | http_ntlm.c | 116 char *base64 = NULL; in Curl_output_ntlm() local 177 ntlm, &base64, &len); in Curl_output_ntlm() 181 if(base64) { in Curl_output_ntlm() 185 base64); in Curl_output_ntlm() 186 free(base64); in Curl_output_ntlm() 197 ntlm, &base64, &len); in Curl_output_ntlm() 201 if(base64) { in Curl_output_ntlm() 205 base64); in Curl_output_ntlm() 206 free(base64); in Curl_output_ntlm()
|
D | http_negotiate.c | 106 char *base64 = NULL; in Curl_output_negotiate() local 111 result = Curl_auth_create_spnego_message(conn->data, neg_ctx, &base64, &len); in Curl_output_negotiate() 116 base64); in Curl_output_negotiate() 127 free(base64); in Curl_output_negotiate()
|
/external/ImageMagick/coders/ |
D | inline.c | 281 *base64, in WriteINLINEImage() local 336 base64=Base64Encode(blob,blob_length,&encode_length); in WriteINLINEImage() 338 if (base64 == (char *) NULL) in WriteINLINEImage() 346 base64=DestroyString(base64); in WriteINLINEImage() 352 (void) WriteBlobString(image,base64); in WriteINLINEImage() 353 base64=DestroyString(base64); in WriteINLINEImage()
|
/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/v8/tools/testrunner/server/ |
D | signatures.py | 29 import base64 36 file_contents = base64.b64encode(f.read()) 46 signature = base64.b64encode(f.read()) 52 f.write(base64.b64decode(file_contents)) 55 f.write(base64.b64decode(signature))
|
/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/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
|
D | msg_38.txt | 42 Content-Transfer-Encoding: base64 56 Content-Transfer-Encoding: base64 64 Content-Transfer-Encoding: base64 78 Content-Transfer-Encoding: base64 86 Content-Transfer-Encoding: base64
|
/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
|
D | msg_38.txt | 42 Content-Transfer-Encoding: base64 56 Content-Transfer-Encoding: base64 64 Content-Transfer-Encoding: base64 78 Content-Transfer-Encoding: base64 86 Content-Transfer-Encoding: base64
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowBase64.java | 13 Base64 base64 = new Base64(); in encodeToString() local 14 return base64.encodeBase64String(bytes); in encodeToString() 19 Base64 base64 = new Base64(); in decode() local 20 return base64.decodeBase64(str); in decode()
|
/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/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/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/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/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/tensorflow/tensorflow/python/kernel_tests/ |
D | base64_ops_test.py | 22 import base64 64 base64_msg = [base64.urlsafe_b64encode(m) for m in msg] 108 enc = base64.urlsafe_b64encode(msg) 114 enc = base64.urlsafe_b64encode(msg) 127 enc = base64.urlsafe_b64encode(msg) 134 enc = base64.urlsafe_b64encode(msg) 145 enc = base64.urlsafe_b64encode(msg)
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | json_objectwriter.cc | 147 string base64; in RenderBytes() local 150 WebSafeBase64Escape(value.ToString(), &base64); in RenderBytes() 152 Base64Escape(value, &base64); in RenderBytes() 158 stream_->WriteRaw(base64.data(), base64.size()); in RenderBytes()
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_reflection_class.cc | 158 std::string base64 = FileDescriptorToBase64(file_); in WriteDescriptor() local 159 while (base64.size() > 60) { in WriteDescriptor() 160 printer->Print("\"$base64$\",\n", "base64", base64.substr(0, 60)); in WriteDescriptor() 161 base64 = base64.substr(60); in WriteDescriptor() 163 printer->Print("\"$base64$\"));\n", "base64", base64); in WriteDescriptor()
|
/external/curl/tests/ |
D | getpart.pm | 82 my $base64=0; 95 elsif($_ =~ /$part [^>]*base64=/) { 97 $base64=1; 114 if($base64) {
|