String str = "天下武功,唯快不破"; //base64编码 String strBase64 = Base64.encodeToString(str.getBytes(), Base64.DEFAULT); LogUtil.e("加密结果==="+strBase64); //base64解码 String str2 = new String(Base64.decode(strBase64.getBytes(), Base64.DEFAULT)); LogUtil.e("解密结果==="+str2);
Base64的加密与解密方法(android)
最新推荐文章于 2024-06-30 20:03:28 发布