Skip to content

@mega-yfue/eufy-sdk / encryptLoginPassword

Function: encryptLoginPassword() ​

ts
function encryptLoginPassword(password): object;

Encrypt the login password against the hardcoded server static public key. AES-256-CBC, key = full 32-byte ECDH secret, IV = its first 16 bytes. Returns the client pubkey hex (for client_secret_info.public_key) + b64 ct.

Parameters ​

password ​

string

Returns ​

object

clientPublicKeyHex ​

ts
clientPublicKeyHex: string;

encryptedPassword ​

ts
encryptedPassword: 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.