Zalo Decrypt icon

Zalo Decrypt

Giải mã chuỗi đã được mã hóa bằng AES

Zalo Decrypt → Giải mã dữ liệu getLoginInfo

AI-generated

Overview

This node performs decryption of data encrypted with AES, specifically tailored for Zalo's encrypted data formats. It supports decrypting login information strings using a secret key and optionally a cookie for extracting the decryption key. This is useful in scenarios where encrypted Zalo login data needs to be decoded to retrieve user information or session details.

Use Case Examples

  1. Decrypting a Zalo login info string to extract user ID and session keys for further processing.
  2. Decoding encrypted data received from Zalo's API to verify user credentials or session status.

Properties

Name Meaning
Chuỗi đã mã hóa The encrypted string that needs to be decrypted.
Secret Key The Base64-encoded secret key used for decryption.
Cookie The zpw_sek cookie used to extract the decryption key, required only for decrypting login info data.

Output

JSON

  • success - Indicates if the decryption was successful (true/false).
  • method - The decryption method used (e.g., decryptResp, decodeAES, crypto-js).
  • data - The decrypted data, typically parsed JSON or raw string if JSON parsing fails.
  • secretKey - Extracted secret key from decrypted data if available.
  • uid - User ID extracted from decrypted data if available.

Dependencies

  • Uses crypto-js library for AES decryption and MD5 hashing.
  • Relies on a custom utility module for decryption methods (decryptResp, decodeAES).

Troubleshooting

  • Ensure the secret key and encrypted string are correctly provided and properly Base64 encoded.
  • If decryption fails, verify the cookie value is correct and contains the zpw_sek key when decrypting login info.
  • Common errors include inability to parse decrypted data as JSON; in such cases, raw decrypted string is returned.
  • Errors during decryption throw detailed messages logged for debugging, and the node can continue on fail if configured.

Discussion