Android Utililty Methods Base64 Encode

List of utility methods to do Base64 Encode

Description

The list of methods to do Base64 Encode are organized into topic(s).

Method

StringconvertToBase64(byte[] in)
convert To Base
if (in == null)
    return null;
return new String(Base64.encode(in, Base64.URL_SAFE
        | Base64.NO_PADDING), "UTF8");
longbase64StringKeyId2Long(String keyId)
base String Key Id Long
try {
    return ByteBuffer.wrap(
            Base64.decode(keyId.getBytes("UTF-8"), Base64.NO_WRAP))
            .getLong();
} catch (IllegalArgumentException e) {
    e.printStackTrace();
    return 0;
} catch (UnsupportedEncodingException e) {
...