Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gateway/platforms/wecom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,8 @@ def _decrypt_file_bytes(encrypted_data: bytes, aes_key: str) -> bytes:
if not aes_key:
raise ValueError("aes_key is required")

# WeCom doesn't pad base64 keys; add padding if needed
aes_key = aes_key + '=' * ((4 - len(aes_key) % 4) % 4)
key = base64.b64decode(aes_key)
if len(key) != 32:
raise ValueError(f"Invalid WeCom AES key length: expected 32 bytes, got {len(key)}")
Expand Down
1 change: 1 addition & 0 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"74554762+wmagev@users.noreply.github.com": "wmagev",
"ashermorse@icloud.com": "ashermorse",
"happy5318@users.noreply.github.com": "happy5318",
"chengoak@users.noreply.github.com": "chengoak",
"emelyanenko.kirill@gmail.com": "EmelyanenkoK",
# Matrix parity salvage batch (April 2026)
"sr@samirusani": "samrusani",
Expand Down
Loading