Skip to content

@mega-yfue/eufy-sdk / tuya / deriveTuyaPassword

Function: deriveTuyaPassword()

ts
function deriveTuyaPassword(eufyUserId): string;

Derive the Tuya password for a eufy user id: UPPERCASE-HEX( AES-128-CBC-NoPadding( pad16("eufyhome-"+eufyUserId), KEY, IV ) ). Deterministic (fixed KEY/IV) — the same user id always yields the same password.

Parameters

eufyUserId

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.