endpoints/js-agent/examples/relay-test.html
Protected Server:https://ac.opennhp.org Invisible by default, scan ports to verifyScan
✓ Knock Successful
You can now access
Redirecting in5seconds Stay on this page
Ready
Request AccessClear Log
▶ Runtime Flow
Initialize NHPAgent with a browser relay transport
Attach app identity and trusted nhp-server key
Build encrypted KNK packet using ECDH and AEAD
POST to nhp-relay server, which forwards the knock to nhp-server over UDP
Parse ACK/COK response and extract temporary access details
Redirect the user to the now-accessible protected resource
#☰ SDK Event Logclick to fold / unfold
#⚙ NHP-Agent Parametersclick to view / edit
nhp-server Public Key (Base64)
nhp-agent Private Key (Base64)
Cipher Schemecurve25519 (X25519 + AES-GCM + BLAKE2s)gmsm (SM2 + SM4-GCM + SM3)
Timeout (ms)
Relay API Path (relayUrl)
User ID
Device ID
Organization ID
Resource ID
Service ID