STRIX b60f634b76 T8: data layer (RDB schema, SecretStore, OpenSSH key containers, repositories)
- data/Models.ts: AuthMethod/SshKeyType enums, HostProfile/KeyRecord/KnownHostRow
- data/Database.ts: haven.db (S3) with version-ladder migration, getInstance/openFresh
- data/SecretStore.ts: Asset-backed master key (Preferences fallback), ENC: password
  envelopes, AES-256-GCM private key files under files/keys/
- data/OpenSshKey.ts: kit-free openssh-key-v1 serialize/parse (raw magic, mpint-style
  EC scalars, checkint/padding validation, cross-checked pub blobs) + PKCS#1/SEC1/
  PKCS#8 PEM import, encrypted containers rejected
- data/KeyGenerator.ts: ed25519/ecdsa-p256/rsa-4096 generation with fingerprints
- HostRepository/KeyRepository/KnownHostRepository(DbKnownHostStore)/SettingsRepository
- common/QuickConnect.ts: user@host[:port] parser incl. bracketed IPv6
- DiagPage button 12: generate Ed25519, persist, reopen fresh handles, read back
- Node self-test 19/19 incl. real ssh-keygen interop both directions (-y roundtrip)
2026-09-08 17:20:05 +08:00

Haven for HarmonyOS

Free, open-source SSH client for HarmonyOS — a port of Haven (Android) by GlassHaven.

SSH · VT100/xterm terminal · connection & key management.

Status

MVP (0.1.x) — SSH terminal + connection management:

  • Pure TypeScript SSH-2.0 stack (no native libraries)
    • KEX: curve25519-sha256, ecdh-sha2-nistp256, strict-kex
    • Ciphers: aes128/256-gcm@openssh.com, aes128/192/256-ctr
    • MACs: hmac-sha2-256/512 (+ EtM variants)
    • Auth: password, publickey (ssh-ed25519, ecdsa-sha2-nistp256, rsa-sha2-256/512)
    • Host key TOFU verification with SHA256 fingerprints
  • VT terminal emulator with 256-color/truecolor, alternate screen, mouse modes, bracketed paste, OSC 52 clipboard, CJK double-width, scrollback
  • Connection manager with quick connect (user@host[:port]), color tags
  • On-device SSH key management (generate / import / copy public key)
  • Keyboard toolbar with sticky Ctrl/Alt and macro snippets
  • English + 简体中文

Requires OpenSSH ≥ 7.4 on the server side.

Build

Open in DevEco Studio (API 26+), or:

hvigorw assembleHap

License

AGPL-3.0

This project is a port of Haven (GlassHaven, AGPL-3.0). The SSH protocol stack and terminal emulator are re-implemented in TypeScript following the algorithms and behavior of the original (JSch defaults / libvterm feature set).

See NOTICE.md for attributions.

S
Description
No description provided
Readme AGPL-3.0
13 MiB
Languages
Kotlin 88.2%
Rust 4%
TypeScript 3.3%
C 1.6%
Shell 1.3%
Other 1.5%