类 MybatiesMD5Util


  • public class MybatiesMD5Util
    extends Object
    Static functions to simplifiy common MessageDigest tasks. This class is thread safe.
    作者:
    99bill
    • 方法详细资料

      • md5

        public static byte[] md5​(byte[] data)
        Calculates the MD5 digest and returns the value as a 16 element byte[].
        参数:
        data - Data to digest
        返回:
        MD5 digest
      • md5

        public static byte[] md5​(String data)
        Calculates the MD5 digest and returns the value as a 16 element byte[].
        参数:
        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