类 MybatiesMD5Util
- java.lang.Object
-
- tech.codingless.core.plugs.mybaties3.util.MybatiesMD5Util
-
public class MybatiesMD5Util extends Object
Static functions to simplifiy commonMessageDigesttasks. This class is thread safe.- 作者:
- 99bill
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static byte[]md5(byte[] data)Calculates the MD5 digest and returns the value as a 16 elementbyte[].static byte[]md5(String data)Calculates the MD5 digest and returns the value as a 16 elementbyte[].static Stringmd5(String data, String salt)static Stringmd5Hex(byte[] data)Calculates the MD5 digest and returns the value as a 32 character hex string.static Stringmd5Hex(String data)Calculates the MD5 digest and returns the value as a 32 character hex string.
-
-
-
方法详细资料
-
md5
public static byte[] md5(byte[] data)
Calculates the MD5 digest and returns the value as a 16 elementbyte[].- 参数:
data- Data to digest- 返回:
- MD5 digest
-
md5
public static byte[] md5(String data)
Calculates the MD5 digest and returns the value as a 16 elementbyte[].- 参数:
data- Data to digest- 返回:
- MD5 digest
-
md5Hex
public static String md5Hex(byte[] data)
Calculates the MD5 digest and returns the value as a 32 character hex string.- 参数:
data- Data to digest- 返回:
- MD5 digest as a hex string
-
md5Hex
public static String md5Hex(String data)
Calculates the MD5 digest and returns the value as a 32 character hex string.- 参数:
data- Data to digest- 返回:
- MD5 digest as a hex string
-
-