Android Base64 Encode encode(String str)

Here you can find the source of encode(String str)

Description

encode

Declaration

public static String encode(String str) 

Method Source Code

//package com.java2s;
import android.util.Base64;

public class Main {

    public static String encode(String str) {
        byte[] encode = Base64.encode(str.getBytes(), Base64.DEFAULT);
        return new String(encode);
    }/*from  w w  w .  j  a v a2s .co m*/
}

Related

  1. encodeBase64(String value)
  2. encode(String s)
  3. encode(final String str)
  4. encode(String source)
  5. encodedBase64(String currentString)
  6. toBase64(String value)
  7. toBase64(byte[] bytes)
  8. base64Encode(byte[] bytes)