/** 解密字符串 */ public String decrypt(String c, String key) { byte[] tmp = Base64Encoder.base64ToByteArray(c); return Encoding.utf8ToString(decrypt(tmp, key)); }
/** 加密字符串 */ public String encrypt(String s, String key) { byte[] tmp = Encoding.stringToUtf8(s); return Base64Encoder.byteArrayToBase64(encrypt(tmp, key)); }