Skip to content

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

Function: encryptP2PData() ​

ts
function encryptP2PData(data, key): Buffer;

AES-128-ECB encrypt (no auto-padding) — P2P control payloads. Inverse of decryptP2PData.

Parameters ​

data ​

Buffer

key ​

Buffer

Returns ​

Buffer

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.