类 SecurityUtil


  • public final class SecurityUtil
    extends Object
    This tool class can convert String to Base64-String or MD5-String
    作者:
    TheodoreHills
    • 方法详细资料

      • Md5Encrypt

        public static String Md5Encrypt​(String value)
        Encrypt the string via MD5

        Be advised: You will not able to recover this encrypted String

        参数:
        value - The string will be encrypted
        返回:
        The encrypted String
      • Base64Encode

        public static String Base64Encode​(String value)
        Encrypt the string via Base64
        参数:
        value - The string will be encrypted
        返回:
        The encrypted String
      • Base64Decode

        public static String Base64Decode​(String value)
        Decode the string via Base64
        参数:
        value - The string will be encrypted
        返回:
        The encrypted String