- java.lang.Object
-
- org.apache.logging.log4j.util.NameUtil
-
@InternalApi public final class NameUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getSubName(String name)
static String
md5(String input)
-
-
-
Method Detail
-
md5
public static String md5(String input)
Calculates the MD5 hash of the given input string encoded using the default platformcharset
.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
-
-