Sha256

class Sha256(source)

Incremental SHA-256 (FIPS 180-4) in pure Kotlin. Not thread-safe.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Constants and factory functions of Sha256.

Functions

Link copied to clipboard

Completes the hash and returns the 32-byte digest. The instance cannot be used afterwards.

Link copied to clipboard

digest as lowercase hex.

Link copied to clipboard
fun update(input: ByteArray, offset: Int = 0, length: Int = input.size - offset): Sha256

Feeds length bytes of input starting at offset.