mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-06-02 22:30:26 +00:00
Bug fix for the different between key file and hex key
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import io
|
||||||
import os
|
import os
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import shutil
|
import shutil
|
||||||
@@ -267,6 +268,7 @@ def main():
|
|||||||
if args.wab:
|
if args.wab:
|
||||||
wab = open(args.wab, "rb").read()
|
wab = open(args.wab, "rb").read()
|
||||||
error_wa = extract.decrypt_backup(wab, key, contact_db, crypt, args.showkey, DbType.CONTACT)
|
error_wa = extract.decrypt_backup(wab, key, contact_db, crypt, args.showkey, DbType.CONTACT)
|
||||||
|
if isinstance(key, io.IOBase):
|
||||||
key.seek(0)
|
key.seek(0)
|
||||||
else:
|
else:
|
||||||
error_wa = 0
|
error_wa = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user