Move Android backup decryption to a standalone module

This commit is contained in:
KnugiHK
2025-02-26 21:20:11 +08:00
parent 26abfdd570
commit b2bcf36622
4 changed files with 228 additions and 211 deletions

View File

@@ -279,12 +279,6 @@ class DbType(StrEnum):
CONTACT = "contact"
def brute_force_offset(max_iv=200, max_db=200):
for iv in range(0, max_iv):
for db in range(0, max_db):
yield iv, iv + 16, db
def determine_metadata(content, init_msg):
msg = init_msg if init_msg else ""
if content["is_me_joined"] == 1: # Override