KeyNavIds

object KeyNavIds

Encode OpenPGP key ids (often negative as Long) for navigation routes.

Functions

Link copied to clipboard
fun decode(hex: String?): Long

Decodes a hex route segment back into a Long key id (0 when invalid).

Link copied to clipboard
fun encode(keyId: Long): String

Encodes keyId as an unsigned hex string safe for a route segment.