Skip to content

@mega-yfue/eufy-sdk / p2pCodec / p2pCommandEncryptionKey

Function: p2pCommandEncryptionKey() ​

ts
function p2pCommandEncryptionKey(stationSn, p2pDid): string;

The "Level 1" AES-128-ECB key for P2P command/control encryption — derivable from sn + p2p_did alone (no cipher needed). HomeBase control-channel notifications (sensor/alarm events) use exactly this key.

Parameters ​

stationSn ​

string

p2pDid ​

string

Returns ​

string

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.