Base64 encode and decode example code

后端 未结 12 964
遥遥无期
遥遥无期 2020-11-22 15:00

Does anyone know how to decode and encode a string in Base64 using the Base64. I am using the following code, but it\'s not working.

String source = \"passwo         


        
12条回答
  •  暖寄归人
    2020-11-22 15:49

    for android API byte[] to Base64String encoder

    byte[] data=new byte[];
    String Base64encodeString=android.util.Base64.encodeToString(data, android.util.Base64.DEFAULT);
    

提交回复
热议问题