org.apache.commons.codec.binary.Base64 加密解密
来源:互联网 发布:刘若英我知谁掌管明天 编辑:程序博客网 时间:2024/05/17 01:08
- /**
- * 解密
- *
- * @param pwd
- * @return
- * @see [类、类#方法、类#成员]
- */
- public static String decodeStr(String pwd)
- {
- Base64 base64 = new Base64();
- byte[] debytes = base64.decodeBase64(new String(pwd).getBytes());
- return new String(debytes);
- }
- /**
- * 加密
- *
- * @param pwd
- * @return
- * @see [类、类#方法、类#成员]
- */
- public static String encodeStr(String pwd)
- {
- Base64 base64 = new Base64();
- byte[] enbytes = base64.encodeBase64Chunked(pwd.getBytes());
- return new String(enbytes);
- }
0 0
- org.apache.commons.codec.binary.Base64 加密解密
- org.apache.commons.codec.binary.Base64图片加密解密
- org.apache.commons.codec.binary.Base64 加密解密
- org.apache.commons.codec.binary.Base64 加密解密
- Base64 Java org.apache.commons.codec.binary.Base64
- [随手记]Android import org.apache.commons.codec.binary.Base64
- 使用org.apache.commons.codec做md5&SHA1&BASE64加密
- ANDROID : java.lang.NoSuchMethodError: 在 org.apache.commons.codec.binary.Base64
- org.apache.commons.codec.binary.Base64与sun.misc.BASE64Encoder等效
- Java 3DES加密解密(Commons.Codec Base64)
- 使用Apache commons-codec Base64实现加解密
- 使用Apache commons-codec Base64实现加解密
- 使用Apache commons-codec Base64实现加解密(转)
- Java Code Examples for org.apache.commons.codec.binary.Base64InputStream
- NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString
- Base64编码实现二---使用org.apache.tomcat.util.codec.binary.Base64实现Base64
- 使用commons-codec-1.10.jar的Base64实现字符串的加密解密
- commons-codec 加密(MD5 SHA1 BASE64)
- 用MediaPlayer实现在线音乐播放
- 自定义控件之CascadeLayout(二)
- android 获取时间 判断是上午的还是下午
- 使用Xcode 6将你的项目本地化
- CentOS 配置防火墙操作实例(启、停、开、闭端口):
- org.apache.commons.codec.binary.Base64 加密解密
- 位操作实现加减乘除四则运算
- IT忍者神龟之Photoshop简单几步制作秋意GIF动画效果
- Linux下安装svn client 1.8
- 尾递归
- 如何让自己的工作更加精彩
- 如果系统要使用超大整数(超过long长度范围),请你设计一个数据结构来存储这种超大型数字以及设计一种算法来实现超大整数加法运算
- yield与return的区别
- ios 设置状态栏背景颜色