HomeSort by relevance Sort by last modified time
    Searched refs:Base64 (Results 1 - 25 of 57) sorted by null

1 2 3

  /frameworks/base/core/tests/coretests/src/android/util/
Base64Test.java 33 byte[] out = Base64.decode(in, 0);
42 String b64 = Base64.encodeToString(in.getBytes(), flags);
51 byte[] out = Base64.decode(in, 0);
128 assertEquals(BYTES, 0, Base64.decode("", 0));
129 assertEquals(BYTES, 1, Base64.decode("/w==", 0));
130 assertEquals(BYTES, 2, Base64.decode("/+4=", 0));
131 assertEquals(BYTES, 3, Base64.decode("/+7d", 0));
132 assertEquals(BYTES, 4, Base64.decode("/+7dzA==", 0));
133 assertEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0));
134 assertEquals(BYTES, 6, Base64.decode("/+7dzLuq", 0))
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/util/
Base64Test.java 20 import org.apache.harmony.luni.util.Base64;
27 * Base64 encoder/decoder test.
36 byte[] result = Base64.decode(new byte[0]);
  /bionic/libc/netbsd/net/
base64.c 1 /* $NetBSD: base64.c,v 1.8 2002/11/11 01:15:17 thorpej Exp $ */
47 __RCSID("$NetBSD: base64.c,v 1.8 2002/11/11 01:15:17 thorpej Exp $");
69 static const char Base64[] =
86 of which is translated into a single digit in the base64 alphabet.
92 Table 1: The Base64 Alphabet
120 Since all base64 input is an integral number of octets, only the
170 target[datalength++] = Base64[output[0]];
171 target[datalength++] = Base64[output[1]];
172 target[datalength++] = Base64[output[2]];
173 target[datalength++] = Base64[output[3]]
    [all...]
  /packages/apps/Email/src/com/android/email/mail/internet/
TextBody.java 22 import android.util.Base64;
39 out.write(Base64.encode(bytes, Base64.CRLF));
BinaryTempFileBody.java 25 import android.util.Base64;
72 out, Base64.CRLF | Base64.NO_CLOSE);
  /frameworks/base/core/java/android/util/
Base64OutputStream.java 24 * An OutputStream that does Base64 encoding on the data written to
28 private final Base64.Coder coder;
37 * Performs Base64 encoding on the data written to the stream,
42 * constants in {@link Base64}
49 * Performs Base64 encoding or decoding on the data written to the
55 * constants in {@link Base64}
64 coder = new Base64.Encoder(flags, null);
66 coder = new Base64.Decoder(flags, null);
114 if ((flags & Base64.NO_CLOSE) == 0) {
Base64InputStream.java 24 * An InputStream that does Base64 decoding on the data read through
28 private final Base64.Coder coder;
39 * An InputStream that performs Base64 decoding on the data read
44 * constants in {@link Base64}
51 * Performs Base64 encoding or decoding on the data read from the
56 * constants in {@link Base64}
66 coder = new Base64.Encoder(flags, null);
68 coder = new Base64.Decoder(flags, null);
  /external/apache-http/src/org/apache/commons/codec/net/
BCodec.java 24 import org.apache.commons.codec.binary.Base64;
28 * Identical to the Base64 encoding defined by <a href="http://www.ietf.org/rfc/rfc1521.txt">RFC
80 return Base64.encodeBase64(bytes);
87 return Base64.decodeBase64(bytes);
91 * Encodes a string into its Base64 form using the specified charset. Unsafe characters are escaped.
94 * string to convert to Base64 form
97 * @return Base64 string
114 * Encodes a string into its Base64 form using the default charset. Unsafe characters are escaped.
117 * string to convert to Base64 form
118 * @return Base64 strin
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
PEMUtil.java 6 import org.bouncycastle.util.encoders.Base64;
83 DERObject o = new ASN1InputStream(Base64.decode(pemBuf.toString())).readObject();
  /frameworks/base/core/java/android/webkit/
CertTool.java 22 import org.bouncycastle.util.encoders.Base64;
58 return new String(Base64.encode(signed));
DataLoader.java 25 import org.apache.harmony.luni.util.Base64;
50 if ("base64".equals(loadListener.transferEncoding())) {
51 data = Base64.decode(data);
  /packages/apps/Email/src/com/android/email/mail/transport/
SmtpSender.java 31 import android.util.Base64;
289 // Lines 2-5 of the conversation contain base64-encoded information. The same conversation, with base64 strings decoded, reads:
304 Base64.encodeToString(username.getBytes(), Base64.NO_WRAP),
307 Base64.encodeToString(password.getBytes(), Base64.NO_WRAP),
321 data = Base64.encode(data, Base64.NO_WRAP);
Rfc822Output.java 32 import android.util.Base64;
222 writeHeader(writer, "Content-Transfer-Encoding", "base64");
234 // Set up input stream and write it out via base64
245 // switch to output stream for base64 text output
248 out, Base64.CRLF | Base64.NO_CLOSE);
249 // copy base64 data and close up
338 * Note this always uses base64, even when not required. Slightly less efficient for
349 writeHeader(writer, "Content-Transfer-Encoding", "base64");
353 out.write(Base64.encode(bytes, Base64.CRLF))
    [all...]
  /external/apache-http/src/org/apache/http/impl/auth/
BasicScheme.java 33 import org.apache.commons.codec.binary.Base64;
170 byte[] base64password = Base64.encodeBase64(
  /frameworks/base/core/java/android/pim/vcard/
VCardEntryConstructor.java 20 import android.util.Base64;
190 if (encoding.equals("BASE64") || encoding.equals("B")) {
191 mCurrentProperty.setPropertyBytes(Base64.decode(value.getBytes(), Base64.DEFAULT));
  /packages/apps/Tag/src/com/android/vcard/
VCardEntryConstructor.java 20 import android.util.Base64;
190 if (encoding.equals("BASE64") || encoding.equals("B")) {
191 mCurrentProperty.setPropertyBytes(Base64.decode(value.getBytes(), Base64.DEFAULT));
  /libcore/luni/src/main/java/org/apache/harmony/luni/util/
Base64.java 27 * This class implements Base64 encoding/decoding functionality
30 public class Base64 {
31 private Base64() {
  /external/bouncycastle/src/main/java/org/bouncycastle/util/encoders/
Base64.java 7 public class Base64
28 throw new RuntimeException("exception encoding base64 string: " + e);
79 throw new RuntimeException("exception decoding base64 string: " + e);
102 throw new RuntimeException("exception decoding base64 string: " + e);
  /external/oauth/core/src/main/java/net/oauth/signature/
OAuthSignatureMethod.java 35 // import org.apache.commons.codec.binary.Base64;
36 import android.util.Base64;
198 return Base64.decode(s, Base64.DEFAULT);
202 return Base64.encodeToString(b, Base64.DEFAULT);
  /frameworks/base/core/java/com/google/android/mms/pdu/
Base64.java 20 public class Base64 {
36 // Create arrays to hold the base64 characters
59 * Decodes Base64 data into octects
61 * @param base64Data Byte array containing Base64 data
65 // RFC 2045 requires that we discard ALL non-Base64 characters
127 * Check octect wheter it is a base64 encoding.
130 * @return ture if it is base64 encoding, false otherwise.
143 * Discards any characters outside of the base64 alphabet, per
145 * outside of the base64 alphabet are to be ignored in base64
    [all...]
  /frameworks/base/core/java/com/android/internal/backup/
LocalTransport.java 31 import org.bouncycastle.util.encoders.Base64;
99 String base64Key = new String(Base64.encode(key.getBytes()));
228 String key = new String(Base64.decode(f.getName()));
  /frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
VNodeBuilder.java 22 import android.util.Base64;
179 if (encoding.equals("BASE64") || encoding.equals("B")) {
180 // Assume BASE64 is used only when the number of values is 1.
181 mCurrentPropNode.propValue_bytes = Base64.decode(value.getBytes(), Base64.NO_WRAP);
  /frameworks/base/tests/CoreTests/android/core/
DatabaseSessionCache.java 13 import org.apache.commons.codec.binary.Base64;
49 * Base64-encoded DER value of the session.
198 String b64 = new String(Base64.encodeBase64(der));
255 byte[] der = Base64.decodeBase64(value.getBytes());
  /libcore/luni/src/main/java/java/util/jar/
JarVerifier.java 34 import org.apache.harmony.luni.util.Base64;
121 if (!MessageDigest.isEqual(d, Base64.decode(hash))) {
414 return MessageDigest.isEqual(b, Base64.decode(hashBytes));
  /external/dnsmasq/contrib/dynamic-dnsmasq/
dynamic-dnsmasq.pl 38 use MIME::Base64;
125 my ($user,$pass) = split ":", MIME::Base64::decode($1);

Completed in 1958 milliseconds

1 2 3