Md5

object Md5

Pure-Kotlin MD5 (RFC 1321).

Used by PDF Standard Security Handlers V1–V4 for key derivation; never for authentication. Don't use for anything else.

Canonical single-loop form: 64 iterations, register-rotation expressed via the four registers rotated each step. Reads (and verifies) cleanly against the spec, which the earlier multi-round-loop form did not.

Functions

Link copied to clipboard
fun hash(input: ByteArray): ByteArray