Zalo Decrypt icon

Zalo Decrypt

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

Zalo Decrypt → Giải mã chuỗi AES

AI-generated

Overview

This node performs decryption of AES-encrypted strings specifically for Zalo data. It is useful for scenarios where encrypted data from Zalo needs to be decrypted to readable JSON or string format, such as decrypting login information or other AES-encrypted payloads. For example, it can decrypt a string encrypted with a secret key (provided in Base64) to retrieve the original data.

Use Case Examples

  1. Decrypting an AES-encrypted login info string from Zalo using a secret key.
  2. Decrypting any AES-encrypted string data from Zalo with a provided secret key.

Properties

Name Meaning
Chuỗi đã mã hóa The AES-encrypted string that needs to be decrypted.
Secret Key The secret key used for decryption, provided in Base64 format.

Output

JSON

  • success - Indicates if the decryption was successful (true/false).
  • data - The decrypted data, either as a JSON object or raw string if JSON parsing fails.
  • raw - The raw decrypted string before JSON parsing.

Dependencies

  • Uses the 'crypto-js' library for AES decryption and MD5 hashing.
  • Uses a custom Zalo SDK utility module for decryption methods.

Troubleshooting

  • Common errors include failure to decrypt due to incorrect secret key or improperly formatted encrypted string.
  • If decryption fails, the node tries multiple methods and logs detailed info to help diagnose the issue.
  • Errors thrown include messages like 'Không thể giải mã dữ liệu với các phương pháp đã thử' indicating all decryption attempts failed.

Discussion