How balramrexwal/whatsapp-crypt14-decrypter works
WhatsApp Crypt Tools is a command-line decrypter for crypt12, crypt14, and crypt15 backups, given a key file or 64-character key. Its main workflow loads the key, interprets the encrypted backup header using protobuf parsing and/or offset guessing, decrypts and validates the data, then writes a SQLite database or ZIP output. The README documents both parsing modes and memory/buffer options. The implementation is largely concentrated in one source file; unsampled internals are represented only where README evidence supports the relationship.
Main entry points: decrypt14_15.py Decrypt CLI · prefix.proto Header schemas · hex_string_to_encrypted_backup_key.py Hex key converter
Components 10
Decryption workflow
- Decrypt CLI
src/wa_crypt_tools/decrypt14_15.py - Key loading
src/wa_crypt_tools/decrypt14_15.py - Decrypt and verify
src/wa_crypt_tools/decrypt14_15.py - Decompress output
src/wa_crypt_tools/decrypt14_15.py - SQLite or ZIP
Backup formats
- Header parsing
src/wa_crypt_tools/decrypt14_15.py - Offset guessing
src/wa_crypt_tools/decrypt14_15.py - Header schemas
proto/prefix.proto
Key utilities
- Hex key converter
utils/hex_string_to_encrypted_backup_key.py
Other components
- Operator
Connections 10
- Operator → Decrypt CLI: runs
README.md - Operator → Key loading: provides key
README.md - Decrypt CLI → Key loading: loads key
src/wa_crypt_tools/decrypt14_15.py - Decrypt CLI → Header parsing: parses protobuf
README.md - Decrypt CLI → Offset guessing: guesses offsets
README.md - Header parsing → Header schemas: uses schema
- Decrypt CLI → Decrypt and verify: decrypts backup
README.md - Decrypt CLI → Decompress output: writes decoded data
src/wa_crypt_tools/decrypt14_15.py - Decompress output → SQLite or ZIP: outputs SQLite or ZIP
README.md - Operator → Hex key converter: converts hex key
utils/hex_string_to_encrypted_backup_key.py