Skip to content

@mega-yfue/eufy-sdk / decryptBody

Function: decryptBody() ​

ts
function decryptBody(b64, shareKeyHex): Buffer;

Decrypt a base64( IV(16) || AES-128-CBC-PKCS7 ) body.

Parameters ​

b64 ​

string

shareKeyHex ​

string

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.