SecureHash.create - corda

corda / net.corda.core.crypto / SecureHash / create

# create

`@JvmStatic fun create(str: String?): SecureHash`

Converts a SecureHash hash value represented as a {algorithm:}hexadecimal String into a SecureHash.

### Parameters

`str` - An optional algorithm id followed by a delimiter and the sequence of hexadecimal digits that represents a hash value.

### Exceptions

`IllegalArgumentException` - The input string does not contain the expected number of hexadecimal digits, or it contains incorrectly-encoded characters.