com.xiaoleilu.hutool
类 SecureUtil
java.lang.Object
com.xiaoleilu.hutool.SecureUtil
public class SecureUtil
- extends Object
安全相关工具类
- 作者:
- xiaoleilu
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureUtil
public SecureUtil()
md5
public static String md5(byte[] source)
- md5编码
- 参数:
source - 需要计算md5的byte数组
- 返回:
- MD5
md5
public static String md5(String source,
String charset)
- md5编码
- 参数:
source - 字符串charset - 字符集,为空使用系统默认字符集
- 返回:
- md5
Copyright © 2014. All rights reserved.