corda / net.corda.core.crypto / SecureHash / SHA256

SHA256

class SHA256 : SecureHash

SHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes).

Constructors

<init>

SHA256(bytes: ByteArray)

SHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes).

Inherited Functions

hashConcat

fun hashConcat(other: SecureHash): SHA256

Append a second hash value to this hash value, and then compute the SHA-256 hash of the result.

prefixChars

fun prefixChars(prefixLen: Int = 6): String

Returns the first prefixLen hexadecimal digits of the SecureHash value.

toString

open fun toString(): String

Convert the hash value to an uppercase hexadecimal String.