@vonxq/vt-shared
v1.0.1
Published
Shared protocol, crypto, and constants for V-Terminal ecosystem
Maintainers
Readme
@vonxq/vt-shared
Shared protocol, crypto, and constants for V-Terminal ecosystem.
V-Terminal 生态的共享协议、加密和常量模块。
Usage / 使用
import {
MSG_TYPES,
Message,
encrypt,
decrypt,
e2eEncrypt,
e2eDecrypt,
generateKeyPair,
keyFingerprint,
generateTotpSecret,
generateTotpToken,
verifyTotpToken,
} from '@vonxq/vt-shared';Modules / 模块
| Module | Description |
|--------|-------------|
| protocol | WebSocket message types and interfaces / 消息类型和接口 |
| crypto | AES-256-GCM symmetric + X25519 NaCl box E2E / 对称加密 + 非对称 E2E |
| totp | TOTP generation and verification (RFC 6238) / 动态码生成与验证 |
| constants | Shared constants (ports, limits, JWT expiry) / 共享常量 |
License
MIT
