/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.java | 30 byte[] out = Base64.decode(in, 0); 39 String b64 = Base64.encodeToString(in.getBytes(), flags); 48 byte[] out = Base64.decode(in, 0); 125 assertEquals(BYTES, 0, Base64.decode("", 0)); 126 assertEquals(BYTES, 1, Base64.decode("/w==", 0)); 127 assertEquals(BYTES, 2, Base64.decode("/+4=", 0)); 128 assertEquals(BYTES, 3, Base64.decode("/+7d", 0)); 129 assertEquals(BYTES, 4, Base64.decode("/+7dzA==", 0)); 130 assertEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0)); 131 assertEquals(BYTES, 6, Base64.decode("/+7dzLuq", 0)) [all...] |
/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...] |
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/util/ |
Base64Test.java | 25 import org.apache.harmony.luni.util.Base64; 32 * Base64 encoder/decoder test. 34 @TestTargetClass(Base64.class) 48 byte[] result = Base64.decode(new byte[0]);
|
/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 | 27 import android.util.Base64; 87 out, Base64.CRLF | Base64.NO_CLOSE);
|
/packages/apps/IM/src/com/android/im/imps/ |
StandardPasswordDigest.java | 24 import android.util.Base64; 49 return Base64.encodeToString(digestBytes, Base64.NO_WRAP);
|
ImpsPresenceUtils.java | 23 import android.util.Base64; 103 String base64Avatar = Base64.encodeToString(avatar, Base64.NO_WRAP); 196 return Base64.decode(avatarStr, Base64.DEFAULT);
|
/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...] |
/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; 293 // Lines 2-5 of the conversation contain base64-encoded information. The same conversation, with base64 strings decoded, reads: 308 Base64.encodeToString(username.getBytes(), Base64.NO_WRAP), 311 Base64.encodeToString(password.getBytes(), Base64.NO_WRAP), 325 data = Base64.encode(data, Base64.NO_WRAP);
|
Rfc822Output.java | 32 import android.util.Base64; 225 writeHeader(writer, "Content-Transfer-Encoding", "base64"); 237 // Set up input stream and write it out via base64 248 // switch to output stream for base64 text output 251 out, Base64.CRLF | Base64.NO_CLOSE); 252 // copy base64 data and close up 341 * Note this always uses base64, even when not required. Slightly less efficient for 352 writeHeader(writer, "Content-Transfer-Encoding", "base64"); 356 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(
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/ |
Base64.java | 7 public class Base64 27 throw new RuntimeException("exception encoding base64 string: " + e); 77 throw new RuntimeException("exception decoding base64 string: " + e); 99 throw new RuntimeException("exception decoding base64 string: " + e);
|
/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/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());
|
/packages/apps/IM/src/com/android/im/app/ |
DatabaseUtils.java | 33 import android.util.Base64; 76 * columns, one for the raw blob data, another for the base64 encoded 78 * downloaded, they are in the base64 encoded form, and instead of 79 * base64 decode the avatars for all the buddies up front, we can just 97 rawData = Base64.decode(encodedData, Base64.DEFAULT);
|
/dalvik/libcore/archive/src/main/java/java/util/jar/ |
JarVerifier.java | 36 import org.apache.harmony.luni.util.Base64; 128 if (!MessageDigest.isEqual(d, Base64.decode(hash))) { 436 return MessageDigest.isEqual(b, Base64.decode(hashBytes));
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/ |
JDKX509CertificateFactory.java | 27 import org.bouncycastle.util.encoders.Base64; 171 return readDERCertificate(new ASN1InputStream(Base64.decode(pemBuf.toString()))); 213 return readDERCRL(new ASN1InputStream(Base64.decode(pemBuf.toString())));
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/ |
Base64.java | 27 * This class implements Base64 encoding/decoding functionality 30 public class Base64 {
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/openssl/ |
PEMWriter.java | 41 import org.bouncycastle.util.encoders.Base64; 79 bytes = Base64.encode(bytes);
|
/external/dnsmasq/contrib/dynamic-dnsmasq/ |
dynamic-dnsmasq.pl | 38 use MIME::Base64; 125 my ($user,$pass) = split ":", MIME::Base64::decode($1);
|