ChecksumVerifier

actual object ChecksumVerifier
expect object ChecksumVerifier

Verifies file integrity using SHA-256 checksums.

Implemented per-platform using native crypto APIs.

actual object ChecksumVerifier

Functions

Link copied to clipboard
actual fun sha256(filePath: String): String?
expect fun sha256(filePath: String): String?

Computes SHA-256 hash of the file at filePath.

actual fun sha256(filePath: String): String?
Link copied to clipboard
actual fun verify(filePath: String, expected: String): Boolean
expect fun verify(filePath: String, expected: String): Boolean

Verifies that the file at filePath matches expected checksum.

actual fun verify(filePath: String, expected: String): Boolean