Package org.mpi_sws.jmc.util
Class StringUtil
java.lang.Object
org.mpi_sws.jmc.util.StringUtil
Utility class for string operations.
This class provides methods for common string operations, such as hashing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringsha256Hash(String input) Generates a SHA-256 hash of the given input string.
-
Constructor Details
-
StringUtil
public StringUtil()
-
-
Method Details
-
sha256Hash
Generates a SHA-256 hash of the given input string.- Parameters:
input- the input string to hash- Returns:
- the SHA-256 hash of the input string as a hexadecimal string
- Throws:
Exception- if an error occurs during hashing
-