HKEY Docs
← Back to SDKs & downloads

SDK Documentation

Mojo SDK

Spec-aligned reference implementation of HKEY v1 in Mojo. It demonstrates the same normalization, derivation, and authenticated packet structure for systems-oriented and high-performance workflows.

Status

This is a spec-aligned reference. Mojo’s standard library and crypto APIs evolve, so you should pin your toolchain and validate outputs against canonical HKEY v1 test vectors before production use.

Package contents

Conceptual usage

from hkey import HotkeyEncryption

fn demo() raises:
    var chords = List[String]()
    chords.append("Ctrl+Alt+H")
    chords.append("Shift+K")
    chords.append("Meta+E")
    chords.append("Y")

    let h = HotkeyEncryption("lab.freezer.alpha", chords)
    let packet = h.encrypt("sensitive payload")
    print(packet)

Parity requirements (HKEY v1)

Validation checklist

This reference focuses on clarity and interoperability. For production or regulated use, validate thoroughly and integrate audited cryptographic primitives as appropriate.