Class DigestUtil


  • public final class DigestUtil
    extends Object
    Utility class for digest operations.
    • Method Detail

      • sha256Hex

        public static String sha256Hex​(byte[] data)
        Calculate the SHA-256 hash of the given data and return it as a hex string.
        Parameters:
        data - The data to hash.
        Returns:
        The SHA-256 hash as a hex string.