ElDavoo / wa-crypt-tools

Manage WhatsApp .crypt12, .crypt14 and .crypt15 files.
GNU General Public License v3.0
635 stars 80 forks source link

waencrypt -- option to NOT specify any feature table nor "max feature number" #144

Open code-consensus opened 2 months ago

code-consensus commented 2 months ago

Hi,

When using waencrypt, there are the command-line options of "--enable-features [...]" and "--max-feature XX". These enable the specified features, and specify the maximum feature in the list. If these are not supplied to the command-line, default values are taken from constants.py. This works fine if you are encrypting a msgstore.db file, which requires the features list.

The problem is encrypting files that are not message databases. Those types of encrypted files (e.g. contacts wa.db.crypt14/crypt15, stickers.db.crypt14/crypt15, etc) do NOT include the features information at all.

E.g. running wainfo on files from your WhatsApp/Backups (e.g. wa.db.crypt14/crypt15) will show: No feature table found (not a msgstore DB or very old) and will also not show a max feature number listed either.

So, the question is if it would be possible to have a command-line argument for waencrypt to NOT add any features-related info to the output. Perhaps it could be called "--no-features"?