sealed class SecureHash : OpaqueBytesContainer for a cryptographically secure hash value. Provides utilities for generating a cryptographic hash using different algorithms (currently only SHA-256 supported).
| SHA256 |
class SHA256 : SecureHashSHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes) |
| bits |
val bits: ByteArray |
| size |
val size: Int |
| prefixChars |
fun prefixChars(prefixLen: Int = 6): <ERROR CLASS> |
| toString |
open fun toString(): <ERROR CLASS> |
| equals |
open fun equals(other: Any?): Boolean |
| hashCode |
open fun hashCode(): Int |
| open |
fun open(): ByteArrayInputStreamReturns a ByteArrayInputStream of the bytes |
| parse |
fun parse(str: String): <ERROR CLASS> |
| randomSHA256 |
fun randomSHA256(): SHA256 |
| sha256 |
fun sha256(bits: ByteArray): SHA256fun sha256(str: String): <ERROR CLASS> |
| sha256Twice |
fun sha256Twice(bits: ByteArray): SHA256 |
| deserialize |
fun <T : Any> OpaqueBytes.deserialize(kryo: <ERROR CLASS> = THREAD_LOCAL_KRYO.get()): T |
| hashConcat |
fun SecureHash.hashConcat(other: SecureHash): <ERROR CLASS> |
| sha256 |
fun OpaqueBytes.sha256(): SHA256 |
| SHA256 |
class SHA256 : SecureHashSHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes) |