com.xiaoleilu.hutool
类 SecureUtil

java.lang.Object
  继承者 com.xiaoleilu.hutool.SecureUtil

public class SecureUtil
extends Object

安全相关工具类

作者:
xiaoleilu

构造方法摘要
SecureUtil()
           
 
方法摘要
static String md5(byte[] source)
          md5编码
static String md5(String source, String charset)
          md5编码
 
从类 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.