类 SecurityUtil


  • public class SecurityUtil
    extends Object
    This tool class can convert String to Base64-String or MD5-String
    从以下版本开始:
    0.0.1.PRE
    作者:
    vorbote
    • 构造器详细资料

      • SecurityUtil

        public SecurityUtil()
    • 方法详细资料

      • Md5Encrypt

        public static String Md5Encrypt​(String value)
        通过MD5方式加密字符串

        请注意:一旦被MD5加密后无法复原,如果需要复原请使用Base64!

        参数:
        value - 待加密的字符串
        返回:
        加密后的字符串
      • Base64Encode

        public static String Base64Encode​(String value)
        通过Base64方式加密字符串
        参数:
        value - 待加密的字符串
        返回:
        加密后的字符串
      • Base64Decode

        public static String Base64Decode​(String value)
        通过MD5方式加密字符串

        请注意:一旦被MD5加密后无法复原,如果需要复原请使用Base64!

        参数:
        value - 待加密的字符串
        返回:
        加密后的字符串