@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;