Files
auth/README.md

1.4 KiB

Auth

Two-factor codes as a Ziran package: time-based one-time passwords (RFC 6238) with HMAC-SHA-1, SHA-256 or SHA-512, otpauth:// links, authenticator exports (Google's otpauth-migration://, Ente Auth's plain text, Aegis plain JSON) and the Auth app's screens for Kryon. The hashes come from crypto.

Werkzeug packs the Auth app and its werk auth command from this package.

Search accounts by service, account name or website. Accounts are ranked by successful copies with a weight that roughly halves every 30 days, then by last copy time and total copies. Copy history is private to this device and survives reopening; account edits and sync preserve it through the record id.

make test    # RFC vectors and exports
make app     # build/auth.zx

src/auth_app.zi is the hosted bundle entry and exports AuthMain. Screen composition lives in src/auth_view.tsx and uses Kryon's public typed TSX components. The native entry implements the host protocol; this package builds through make app rather than declaring a standalone Kryon application profile. Native actions own account data, form buffers, scrolling and copy feedback; the TSX views call those checked actions when an event changes state. Package imports auth, totp and exports provide the app actions, code and link handling, and authenticator export parsing in Ziran.