/external/python/cpython2/Lib/test/ |
H A D | test_base64.py | 3 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 D | ShadowBase64.java | 13 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 D | BaseEncodingTest.java | 20 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 D | retrieve_from_googlesource.py | 13 import base64 namespace 30 return base64.b64decode(f.read())
|
/external/wpa_supplicant_8/hs20/server/ca/ |
H A D | est-csrattrs.sh | 4 base64 est-csrattrs.der > est-attrs.b64
|
/external/guava/guava-tests/test/com/google/common/io/ |
H A D | BaseEncodingTest.java | 20 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 D | PackageSanityTests.java | 32 setDefault(BaseEncoding.class, BaseEncoding.base64());
|
/external/python/cpython2/Lib/encodings/ |
H A D | base64_codec.py | 1 """ 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 D | signatures.py | 29 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 D | base64.c | 24 #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 D | Base64.java | 16 * 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 D | Blob.h | 46 void base64(const std::string base64_); 48 std::string base64(void) const;
|
/external/skia/tools/fiddle/ |
H A D | parse-fiddle-output | 19 | base64 -d > "$dst"
|
/external/autotest/client/cros/image_comparison/ |
H A D | publisher.py | 5 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 D | http_ntlm.c | 113 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 D | http_negotiate.c | 106 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 D | encoders.py | 14 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 D | generate-unicode-test-txt | 8 import array, zlib, base64, sys namespace 51 base64.b64decode(valid_codepoint_data)))
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
H A D | Credentials.java | 31 String encoded = ByteString.of(bytes).base64();
|
/external/ipsec-tools/src/racoon/ |
H A D | prsa_tok.l | 54 base64 [A-Za-z0-9+/=] 69 0s{base64}+ {
|
/external/syslinux/com32/libutil/ |
H A D | unbase64.c | 31 * 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 D | inline.c | 84 % 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 D | CommandLineSerializer.java | 30 * 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 D | json_objectwriter.cc | 147 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 D | base64_bio.c | 62 #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...] |