wxr
2022-10-28 bab36f8002d92e7125dfc40023f566266e3fdb38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.mm.android.deviceaddmodule.mobilecommon.utils;
 
import android.util.Base64;
 
/**
 * 功能说明:
 * 版权申明:
 */
 
public class Base64Help {
    public static String encode(byte[] bytes){
        return Base64.encodeToString(bytes, Base64.DEFAULT);
    }
    
    public static byte[] decode(String str) {
        return Base64.decode(str, Base64.DEFAULT);
    }
}