Skip to content

@mega-yfue/eufy-sdk / getImageKey

Function: getImageKey() ​

ts
function getImageKey(
   serialNumber, 
   p2pDid, 
   code
): string;

Derive the AES-128-ECB key for a v1 thumbnail: SHA-256 over the base code + seed, rotated by a hash byte.

Parameters ​

serialNumber ​

string

p2pDid ​

string

code ​

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.