Class NameUtil

java.lang.Object
org.apache.logging.log4j.core.util.NameUtil

public final class NameUtil extends Object
  • Method Details

    • getSubName

      public static String getSubName(String name)
    • md5

      @Deprecated public static String md5(String input)
      Deprecated.
      Calculates the MD5 hash of the given input string encoded using the default platform charset.

      MD5 has severe vulnerabilities and should not be used for sharing any sensitive information. This function should only be used to create unique identifiers, e.g., configuration element names.

      Parameters:
      input - string to be hashed
      Returns:
      string composed of 32 hexadecimal digits of the calculated hash