com.coinbase.cdp.auth
Method Details
sha256Hex
Overload 1
input (byte[]) - the bytes to hash
Returns:
String - the SHA-256 hash as a lowercase hex string
Throws:
[RuntimeException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/RuntimeException.html "class or interface in java.lang") - if SHA-256 algorithm is not available
Overload 2
input (String) - the string to hash
Returns:
String - the SHA-256 hash as a lowercase hex string
Throws:
[RuntimeException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/RuntimeException.html "class or interface in java.lang") - if SHA-256 algorithm is not available