Package de.xima.fc.cryptography
Class DigestUtil
- java.lang.Object
-
- de.xima.fc.cryptography.DigestUtil
-
public final class DigestUtil extends Object
Utility class for digest operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringsha256Hex(byte[] data)Calculate the SHA-256 hash of the given data and return it as a hex string.
-
-
-
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.
-
-