Class StringUtil

java.lang.Object
org.mpi_sws.jmc.util.StringUtil

public class StringUtil extends Object
Utility class for string operations.

This class provides methods for common string operations, such as hashing.

  • Constructor Details

    • StringUtil

      public StringUtil()
  • Method Details

    • sha256Hash

      public static String sha256Hash(String input) throws Exception
      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