public class Base64Encode extends Object
Author: Huiyuzhe
| 构造器和说明 |
|---|
Base64Encode() |
public static String encoderText(String text) throws UnsupportedEncodingException
text - 需要加密的字符串UnsupportedEncodingExceptionpublic static String decoderText(String text) throws UnsupportedEncodingException
text - 需要解密base64码UnsupportedEncodingExceptionpublic static String encode(byte[] data)
data - 加密的字节数组public static byte[] decode(String s)
s - 解密的字符串Copyright © 2019. All rights reserved.