Java代碼
import java
public class test {
/**
* 編碼
* @param bstr
* @return String
*/
public static String encode(byte[] bstr){
return new sun
}
/**
* 解碼
* @param str
* @return string
*/
public static byte[] decode(String str){
byte[] bt = null;
try {
sun
bt = decoder
} catch (IOException e) {
e
}
return bt;
}
/**
* @param args
*/
public static void main(String[] args) {
test te = new test();
String aa =
aa = te
System
String str = aa;
String str
System
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26998.html