Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about encryption #161

Open
bagaweb opened this issue Jan 15, 2025 · 4 comments
Open

Question about encryption #161

bagaweb opened this issue Jan 15, 2025 · 4 comments

Comments

@bagaweb
Copy link

bagaweb commented Jan 15, 2025

My old device got broken, I was able to make a backup of all the chats and export it by using this tool: https://github.com/KnugiHK/WhatsApp-Key-DB-Extractor.

Anyway, when I try to import this msgstore.db backup file in another device, Whatsapp doesn't seem to recognize it and i'm not able to restore the backup.

I was wondering if I should encrypt the msgstore.db file to msgstore.db.crypt14 in order to restore the backup. Can this be achieved with your tool?

@code-consensus
Copy link

I was wondering if I should encrypt the msgstore.db file to msgstore.db.crypt14 in order to restore the backup. Can this be achieved with your tool?

You can use the tool to create db.crypt14 files that are identical to what WhatsApp exports, so there is nothing stopping you from restoring the database in the way you mention.

The crypt14 encryption progress is described in issue #125 FYI. Also, if you need to create the key file, see issue #140.

@bagaweb
Copy link
Author

bagaweb commented Feb 7, 2025

Thanks @code-consensus.

Since I've been using again whatsapp for about a month and I really don't want to lose all the backuped chats anymore, is there a way to eventually merge the old backup with the last month usage?

@code-consensus
Copy link

Yes, it is theoretically possible to merge old and new backups, as they are both just SQL databases.

Merging databases is actually discussed in a thread in ElDavoo's github discussion topic #118, and it includes someone that was actually successful in doing it, so you can learn about it at that post. However, it is quite complicated and requires knowledge of SQL database manipulation.

@bagaweb
Copy link
Author

bagaweb commented Feb 9, 2025

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants