base64编码
来源:互联网 发布:软件申请高新技术产品 编辑:程序博客网 时间:2024/04/30 03:11
package com.softeem.base64;
import org.apache.commons.codec.binary.Base64;
public class TestBase64 {
//
public String encode(String myStringring){
Base64 base64=new Base64();
byte [] buft=base64.encode(myStringring.getBytes());
return new String(buft);
}
public String decode(String base64String){
Base64 base64=new Base64();
byte[] buft=base64.decode(base64String.getBytes());
return new String(buft);
}
public static void main(String[] args){
TestBase64 test=new TestBase64();
String base=test.encode("中国人");
System.out.println(base);
String base1=test.decode(base);
System.out.println(base1);
}
}
- Base64编码
- Base64编码
- base64编码
- BASE64编码
- Base64编码
- BASE64编码
- base64 编码
- Base64编码
- Base64编码
- Base64编码
- base64编码
- BASE64编码
- base64编码
- BASE64编码
- base64编码
- base64编码
- base64编码
- base64 编码
- [转]python 复制(拷贝)对象
- RootKit
- samhain problem
- BIOS中隐藏Telnet后门
- 连接
- base64编码
- 数据库连接池
- SOAP
- BIOS中隐藏Telnet后门
- fprintf 和 fscanf
- sql
- 【翻译】intel指令格式与长度反汇编引擎ADE32分析——来自看雪软件安全网站
- sql语句
- Software for feature selection