Searched refs:base64 (Results 1 - 25 of 161) sorted by relevance

1234567

/external/python/cpython2/Lib/test/
H A Dtest_base64.py3 import base64 namespace
11 eq(base64.encodestring("www.python.org"), "d3d3LnB5dGhvbi5vcmc=\n")
12 eq(base64.encodestring("a"), "YQ==\n")
13 eq(base64.encodestring("ab"), "YWI=\n")
14 eq(base64.encodestring("abc"), "YWJj\n")
15 eq(base64.encodestring(""), "")
16 eq(base64.encodestring("abcdefghijklmnopqrstuvwxyz"
23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n')
27 eq(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n"), "www.python.org")
28 eq(base64
[all...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowBase64.java13 Base64 base64 = new Base64();
14 return base64.encodeBase64String(bytes);
19 Base64 base64 = new Base64();
20 return base64.decodeBase64(str);
/external/guava/guava-gwt/test-super/com/google/common/io/super/com/google/common/io/
H A DBaseEncodingTest.java20 import static com.google.common.io.BaseEncoding.base64;
48 testEncodes(base64().withSeparator("\n", 3), "foobar", "Zm9\nvYm\nFy");
49 testEncodes(base64().withSeparator("$", 4), "foobar", "Zm9v$YmFy");
56 base64().withSeparator("=", 3);
61 base64().withPadChar('#').withSeparator("!#!", 3);
68 BaseEncoding separated = base64().withSeparator("\n", 3);
77 testEncodingWithSeparators(base64(), "", "");
78 testEncodingWithSeparators(base64(), "f", "Zg==");
79 testEncodingWithSeparators(base64(), "fo", "Zm8=");
80 testEncodingWithSeparators(base64(), "fo
[all...]
/external/skia/tools/
H A Dretrieve_from_googlesource.py13 import base64 namespace
30 return base64.b64decode(f.read())
/external/wpa_supplicant_8/hs20/server/ca/
H A Dest-csrattrs.sh4 base64 est-csrattrs.der > est-attrs.b64
/external/guava/guava-tests/test/com/google/common/io/
H A DBaseEncodingTest.java20 import static com.google.common.io.BaseEncoding.base64;
54 testEncodes(base64().withSeparator("\n", 3), "foobar", "Zm9\nvYm\nFy");
55 testEncodes(base64().withSeparator("$", 4), "foobar", "Zm9v$YmFy");
62 base64().withSeparator("=", 3);
67 base64().withPadChar('#').withSeparator("!#!", 3);
74 BaseEncoding separated = base64().withSeparator("\n", 3);
83 testEncodingWithSeparators(base64(), "", "");
84 testEncodingWithSeparators(base64(), "f", "Zg==");
85 testEncodingWithSeparators(base64(), "fo", "Zm8=");
86 testEncodingWithSeparators(base64(), "fo
[all...]
H A DPackageSanityTests.java32 setDefault(BaseEncoding.class, BaseEncoding.base64());
/external/python/cpython2/Lib/encodings/
H A Dbase64_codec.py1 """ Python 'base64_codec' Codec - base64 content transfer encoding
9 import codecs, base64 namespace
24 output = base64.encodestring(input)
42 output = base64.decodestring(input)
55 return base64.encodestring(input)
60 return base64.decodestring(input)
72 name='base64',
/external/v8/tools/testrunner/server/
H A Dsignatures.py29 import base64 namespace
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/syslinux/gpxe/src/core/
H A Dbase64.c24 #include <gpxe/base64.h>
32 static const char base64[64] = variable
60 *(encoded_bytes++) = base64[tmp];
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DBase64.java16 * A utility class to perform base64 encoding and decoding as specified
31 private static byte[] base64 = { field in class:Base64
59 for (int idx = 0; idx < base64.length; idx++)
61 ascii[base64[idx]] = (byte) idx;
78 * @return the base64-encoded data.
92 * @return the base64-encoded data.
125 dst[didx++] = base64[bits6];
127 dst[didx++] = base64[bits6];
129 dst[didx++] = base64[bits6];
131 dst[didx++] = base64[bits
[all...]
/external/ImageMagick/Magick++/lib/Magick++/
H A DBlob.h46 void base64(const std::string base64_);
48 std::string base64(void) const;
/external/skia/tools/fiddle/
H A Dparse-fiddle-output19 | base64 -d > "$dst"
/external/autotest/client/cros/image_comparison/
H A Dpublisher.py5 import base64 namespace
39 Move viewer files to the results folder and base64 encode the images.
48 # Encode the images to 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())
68 Move viewer files to the results folder and base64 encode the images.
78 b64img = base64.b64encode(image_file.read())
79 b64imgsrc = "data:image/png;base64, " + b64img
/external/curl/lib/
H A Dhttp_ntlm.c113 char *base64 = NULL; local
173 result = Curl_auth_create_ntlm_type1_message(userp, passwdp, ntlm, &base64,
178 if(base64) {
182 base64);
183 free(base64);
194 ntlm, &base64, &len);
198 if(base64) {
202 base64);
203 free(base64);
H A Dhttp_negotiate.c106 char *base64 = NULL; local
111 result = Curl_auth_create_spnego_message(conn->data, neg_ctx, &base64, &len);
116 base64);
127 free(base64);
/external/python/cpython2/Lib/email/
H A Dencoders.py14 import base64 namespace
28 # We can't quite use base64.encodestring() since it tacks on a "courtesy
33 value = base64.encodestring(s)
49 msg['Content-Transfer-Encoding'] = 'base64'
/external/skia/experimental/tools/
H A Dgenerate-unicode-test-txt8 import array, zlib, base64, sys namespace
51 base64.b64decode(valid_codepoint_data)))
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DCredentials.java31 String encoded = ByteString.of(bytes).base64();
/external/ipsec-tools/src/racoon/
H A Dprsa_tok.l54 base64 [A-Za-z0-9+/=]
69 0s{base64}+ {
/external/syslinux/com32/libutil/
H A Dunbase64.c31 * Convert a string in base64 format to a byte array.
35 #include <base64.h>
55 /* Also support filesystem safe alternate base64 encoding */
/external/ImageMagick/coders/
H A Dinline.c84 % ReadINLINEImage() reads base64-encoded inlines images.
287 *base64,
310 Convert image to base64-encoding.
342 base64=Base64Encode(blob,blob_length,&encode_length);
344 if (base64 == (char *) NULL)
347 Write base64-encoded image.
352 base64=DestroyString(base64);
355 (void) FormatLocaleString(message,MagickPathExtent,"data:%s;base64,",
358 (void) WriteBlobString(image,base64);
281 *base64, local
[all...]
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/
H A DCommandLineSerializer.java30 * Serializes and deserializes WorkerSpecs as base64 encoded strings so they can be passed on the
41 /** Returns the given serializable object as a base64 encoded String. */
48 return BaseEncoding.base64().encode(bytes.toByteArray());
54 /** Parses the given base64 encoded string as an object of the given type. */
57 ByteArrayInputStream bais = new ByteArrayInputStream(BaseEncoding.base64().decode(arg));
/external/protobuf/src/google/protobuf/util/internal/
H A Djson_objectwriter.cc147 string base64; local
150 WebSafeBase64Escape(value.ToString(), &base64);
152 Base64Escape(value, &base64);
155 // TODO(wpoon): Consider a ByteSink solution that writes the base64 bytes
158 stream_->WriteRaw(base64.data(), base64.size());
/external/boringssl/src/decrepit/bio/
H A Dbase64_bio.c62 #include <openssl/base64.h>
86 EVP_ENCODE_CTX base64; member in struct:b64_struct
141 EVP_DecodeInit(&ctx->base64);
210 * '\n' before we even start looking for base64 encoded stuff. */
217 k = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &num, p,
221 EVP_DecodeInit(&ctx->base64);
229 EVP_DecodeInit(&ctx->base64);
288 i = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf,
332 EVP_EncodeInit(&(ctx->base64));
401 EVP_EncodeUpdate(&(ctx->base64), (uint8_
[all...]

Completed in 2570 milliseconds

1234567