Home
last modified time | relevance | path

Searched refs:base64 (Results 1 – 25 of 273) sorted by relevance

1234567891011

/external/guava/guava-gwt/test-super/com/google/common/io/super/com/google/common/io/
DBaseEncodingTest.java20 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/
DBaseEncodingTest.java20 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/
DBase64.java31 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/
Dcurl_ntlm.c110 char *base64 = NULL; in Curl_output_ntlm() local
170 result = Curl_sasl_create_ntlm_type1_message(userp, passwdp, ntlm, &base64, in Curl_output_ntlm()
175 if(base64) { in Curl_output_ntlm()
179 base64); in Curl_output_ntlm()
180 free(base64); in Curl_output_ntlm()
191 ntlm, &base64, &len); in Curl_output_ntlm()
195 if(base64) { in Curl_output_ntlm()
199 base64); in Curl_output_ntlm()
200 free(base64); in Curl_output_ntlm()
/external/v8/tools/testrunner/server/
Dsignatures.py29 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/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1-modules/pyasn1_modules/
Dpem.py1 import base64, sys
32 substrate = ''.join([ base64.b64decode(x) for x in certLines ])
34 substrate = ''.encode().join([ base64.b64decode(x.encode()) for x in certLines ])
47 return ''.join([ base64.b64decode(x) for x in fileObj.readlines() ])
50 [ base64.b64decode(x.encode()) for x in fileObj.readlines() ]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowBase64.java13 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/skia/src/animator/
DSkDrawBitmap.cpp123 SK_MEMBER(base64, Base64),
134 base64.fData = nullptr; in SkImageBaseBitmap()
135 base64.fLength = 0; in SkImageBaseBitmap()
139 delete[] base64.fData; in ~SkImageBaseBitmap()
182 if (base64.fData) { in resolve()
184 SkImageDecoder::DecodeMemory(base64.fData, base64.fLength, &fBitmap); in resolve()
/external/autotest/client/cros/image_comparison/
Dpublisher.py5 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/third_party/gsutil/third_party/boto/boto/kms/
Dlayer1.py30 import base64
281 ciphertext_blob = base64.b64encode(ciphertext_blob)
290 response['Plaintext'] = base64.b64decode(
405 plaintext = base64.b64encode(plaintext)
414 response['CiphertextBlob'] = base64.b64decode(
462 response['CiphertextBlob'] = base64.b64decode(
465 response['Plaintext'] = base64.b64decode(
513 response['CiphertextBlob'] = base64.b64decode(
533 response['Plaintext'] = base64.b64decode(
735 ciphertext_blob = base64.b64encode(ciphertext_blob)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Ddjango_orm.py24 import base64
47 return pickle.loads(base64.b64decode(value))
52 return base64.b64encode(pickle.dumps(value))
72 return pickle.loads(base64.b64decode(value))
77 return base64.b64encode(pickle.dumps(value))
Dxsrfutil.py24 import base64
73 token = base64.urlsafe_b64encode(digest + DELIMITER + when)
98 decoded = base64.urlsafe_b64decode(token)
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rcssmin/
DMANIFEST195 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/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/
Dtsigkeyring.py18 import base64
30 secret = base64.decodestring(textring[keytext])
42 secret = base64.encodestring(keyring[keyname])
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sqs/
Djsonmessage.py21 import base64
35 value = base64.b64decode(value.encode('utf-8')).decode('utf-8')
43 return base64.b64encode(value.encode('utf-8')).decode('utf-8')
Dmessage.py66 import base64
169 return base64.b64encode(value).decode('utf-8')
173 value = base64.b64decode(value.encode('utf-8')).decode('utf-8')
263 value = base64.b64decode(value.encode('utf-8')).decode('utf-8')
270 return base64.b64encode(value.encode('utf-8')).decode('utf-8')
/external/boringssl/src/decrepit/bio/
Dbase64_bio.c84 EVP_ENCODE_CTX base64; member
139 EVP_DecodeInit(&ctx->base64); in b64_read()
215 k = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &num, p, in b64_read()
219 EVP_DecodeInit(&ctx->base64); in b64_read()
227 EVP_DecodeInit(&ctx->base64); in b64_read()
286 i = EVP_DecodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, in b64_read()
330 EVP_EncodeInit(&(ctx->base64)); in b64_write()
399 EVP_EncodeUpdate(&(ctx->base64), (uint8_t *)ctx->buf, &ctx->buf_len, in b64_write()
455 if ((ret == 0) && (ctx->encode != B64_NONE) && (ctx->base64.num != 0)) { in b64_ctrl()
487 } else if (ctx->encode != B64_NONE && ctx->base64.num != 0) { in b64_ctrl()
[all …]
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
Djson.py13 import base64
84 return base64.b64encode(encode(value, *args, **kwargs))
92 return decode(base64.b64decode(value), *args, **kwargs)
/external/curl/tests/server/
Dgetpart.c268 int base64 = 0; in getpart() local
295 error = appenddata(outbuf, outlen, &outalloc, buffer, base64); in getpart()
328 if(base64) { in getpart()
345 if(base64) { in getpart()
421 base64 = 1; in getpart()
430 error = appenddata(outbuf, outlen, &outalloc, buffer, base64); in getpart()
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
Dpem.py19 import base64
92 return base64.decodestring(pem)
109 b64 = base64.encodestring(contents).replace(b('\n'), b(''))
/external/curl/tests/
Dgetpart.pm82 my $base64=0;
95 elsif($_ =~ /$part [^>]*base64=/) {
97 $base64=1;
114 if($base64) {
/external/skia/platform_tools/android/bin/
Dhttp_download.py11 import base64
47 auth_code = base64.b64encode(username + ':' + password)
49 auth_code = base64.b64encode(username)
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rcssmin/tests/yui/out/
Ddataurl-base64-eof.out1base64-singlequotes{width:100px;height:100px;background-image:url('data:image/png;base64,iVBORw0KG…
Ddataurl-base64-eof.out.b1base64-singlequotes{width:100px;height:100px;background-image:url('data:image/png;base64,iVBORw0KG…
/external/chromium-trace/catapult/third_party/py_vulcanize/third_party/rcssmin/tests/yui/
Ddataurl-base64-eof.css.min1base64-singlequotes{width:100px;height:100px;background-image:url('data:image/png;base64,iVBORw0KG…

1234567891011