/**
      * 加密
      * @param str
      * @return
      */
public static String getStr(String str){
         BASE64Encoder base64 = new BASE64Encoder();
         return base64.encode(str.getBytes());
     }
/**
      * 解密
      * @param str
      * @return
      * @throws IOException
      */
     public static String getDeStr(String str) throws IOException{
         BASE64Decoder base64 = new BASE64Decoder();
         return new String(base64.decodeBuffer(str));
     }