yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] NepT1:
Android mode!

trying to repair android database...

trying to decrypt android database...

Traceback (most recent call last):

File "C:\Whatsapp\whatsapp_xtract.py", line 961, in main

c1.execute("SELECT * FROM chat_list")

sqlite3.DatabaseError: file is encrypted or is not a database

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Whatsapp\whatsapp_xtract.py", line 979, in main

c1.execute("SELECT * FROM chat_list")

sqlite3.OperationalError: no such table: chat_list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Whatsapp\whatsapp_xtract.py", line 2062, in <module>

main(sys.argv[1:])

File "C:\Whatsapp\whatsapp_xtract.py", line 988, in main

from Crypto.Cipher import AES

ImportError: No module named 'Crypto'
[Android Apps and Games] mhammadakkad:
WhatCrypt App decrypt faild :(

i got the key and crypt7 backup and its faild

and im not rooted what to do ??
[Android Apps and Games] Amon-Don:
I am guessing correctly if i say there is no chance to get this working for iPhones right?
[Android Apps and Games] TripCode:
Please make sure you have set the path in the WhatCrypt App to both the key file and the backup. If it still fails then it's likely that the cipher key used to create the backup has rolled (i.e. updated to a new cipher). You can confirm this by opening both the key file and database backup in a hex editor and searching for the IV string which will exist in both files. If these don't match then you don't have the original key.
[Android Apps and Games] Pumpernickel1:
Does .crypt7 really need that key?!?

I wiped my phone, wiped data/factory reset, wiped dalvik+cache, format all partitions except the sd card. I did not make any backups or extracted the key before!

I fresh installed a new ROM, downloaded Whatsapp from GooglePlay and its able to restore all my messages, just from the files of my sdcard! My database files are all .crypt7!!!

HOW IS THIS POSSIBLE IF A KEY IS NEEDED??

There must at least be another way to decrypt without a the key from the data storage.
[Android Apps and Games] m4rv1n:
I wipe my phone, update it (samsung s4 minor version update) and try to restore my backup but, with the last version from play store, it say nothing but don't show me message (only group without messages and no single chat), with new version from whatsapp it say "sorry we can't restore".

I've a 21MB file and i think it's a backup so it have to work!! What is missing for restore?
[Android Apps and Games] EricaSullia:
Before a sync or restore, I believe that iTunes will create a backup of your phone's contents (unless you manually cancel this backup). The backup will contain the photos and videos that were on the phone.

You can check if a backup was created by doing the following:

Launch iTunes

iTunes > Preferences > Devices

See if there is an entry with the date of the restore.

If a backup exists, you can recover your data with one of two methods:

Restore your phone using that backup; or

Use an application such as iPhone Backup Extractor to extract the message out of the backup file
[Android Apps and Games] ChrisaLania:
320

yes, I really agree that you posed.
[Android Apps and Games] jyani_raj:
any one know how to decrypt .crypt4 file ?

Hello all,

any one know how to decrypt .crypt4 file ?

i have tried java and python code with modificartion but didn't get success. with open comment working with .crypt5 but not crypt4.

anyone know which changes require for .crypt4 file in java or python .

public class WhatsAppDecrypt5 {

public static void main(String[] args) {

String strArg0 = "C:\\msgstore.db.crypt4";

try {

decrypt(strArg2, new File(strArg0));

} catch (Exception e) {

System.out.println("Error : " + e.getMessage());

}

}

public static boolean decrypt(String acc, File f) throws Exception {

String s = "8D4B155CC9FF81E5CBF6FA7819366A3EC621A656416CD793" ;

byte[] key = hexStringToByteArray(s);

byte[] iv = { (byte) 0x1E, (byte) 0x39, (byte) 0xF3, (byte) 0x69,

(byte) 0xE9, (byte) 0xD, (byte) 0xB3, (byte) 0x3A, (byte) 0xA7,

(byte) 0x3B, (byte) 0x44, (byte) 0x2B, (byte) 0xBB,

(byte) 0xB6, (byte) 0xB0, (byte) 0xB9 };

System.out.println("IV Length:" + iv.length); // returns 16.

//	MessageDigest md = MessageDigest.getInstance("MD5");

//	md.update(acc.getBytes());

//byte[] md5 = md.digest();

//for (int i = 0; i < 24; i++) {

//	key ^= md5[i & 0xf];

//}

Cipher cipher = Cipher.getInstance("AES/CBC/NOPADDING");

SecretKeySpec keySpec = new SecretKeySpec(key, "AES");

cipher.init(Cipher.DECRYPT_MODE, keySpec, new IvParameterSpec(iv));

// cipher.update(getBytesFromFile(f));

byte[] output = cipher.doFinal(getBytesFromFile(f)); // should give the

// output

System.out.println("Data : " + new String(output));

return true;

}

public static final byte[] hexStringToByteArray(String str) {

int i = 0;

byte[] results = new byte[str.length() / 2];

for (int k = 0; k < str.length();) {

results = (byte) (Character.digit(str.charAt(k++), 16) << 4);

results += (byte) (Character.digit(str.charAt(k++), 16));

i++;

}

return results;

}

public static byte[] getBytesFromFile(File file) throws IOException {

InputStream is = new FileInputStream(file);

long length = file.length();

if (length > Integer.MAX_VALUE) {

} // file would be too large..

byte[] bytes = new byte[(int) length];

int offset = 0;

int numRead = 0;

while (offset < bytes.length

&& (numRead = is.read(bytes, offset, bytes.length - offset)) >= 0) {

offset += numRead;

}

if (offset < bytes.length) {

throw new IOException("Could not completely read file "

+ file.getName());

}

is.close();

System.out.println("Size : " + bytes.length);

return bytes;

}

}

Thnks
[Android Apps and Games] jigneshpatel571985:
how to decrypt crypt6 file

hi

i want to decrypt crypt6 file form other device backup file

i have only crypt6 file data dont have that phone

so please tell me it is possible to decrypt..?

Thanks
[Android Apps and Games] curiosest:
read crypt7 without key

hi guys i have a few crypt7 watsapp backups need to get an important msgs is there a way that i can read the file without a key please email me with a reply thanks
[Android Apps and Games] TripCode:
Because the first 67 bytes of a crypt7 file contains a challenge key, a sha256 hash comparison key and the iv. All this information is sent to WhatsApp's server and their "online keygen" will return the correct cipher key, thus allowing decryption (no local key required as it's all read remotely over the network). If you remove WhatsApp, re-install WhatsApp and then take your device offline you will NOT be able to restore. In other words? WhatsApp have the ability to decrypt any crypt7 database by using the data contained within the first 67 bytes of the file. We on the other hand need the key file on a per database basis or their actual keygen (please feel free to hack their server).

You have already asked this question and I replied to it here: http://xdaforums.com/showpost.php?p=52111259&postcount=1036

There is no other way. If you ask this question again, the answer will still be the same!

If you don't have access to the device or the key file then the answer is no it's not possible.

There is absolutely NO way to decrypt a crypt7 backup file from WhatsApp without a matching key file.

Fact of the day: NO KEY FILE = NO DECRYPT WHATSAPP
[Android Apps and Games] wibok:
I have the Chatstorage.sqlite file from iphone ¿is it impossible to see the content?
[Android Apps and Games] jbravos78:
Hi

Hi everyone, this is my first message here.

I've used this tool following instruction with an old database whatsapp android (2013), but i get this error message:

C:\Users\Mad Max\Desktop\Download\Whatsapp_Xtract_V2.1_2012-05-10-2>python whats

app_xtract.py msgstore.db.crypt

Python Version 2.x

Android mode!

trying to repair android database...

trying to decrypt android database...

decrypted database written to msgstore-2013-08-17.1.plain.db

trying to repair decrypted android database...

Could not open database file. Guess it's not a valid Android or Iphone database

file.

why?? I'm desperate, I'm desperate, there are messages of a dead cousin of my wife... help me, if you can.... :crying::crying:
[Android Apps and Games] RalphAC:
A question

Hello Guys,

That's my first post also!

I have copy and pasted all my cellphone files on my desktop yesterday and i have sold my phone.

Now, i have all the files on the desktop including all the whatsapp CHATS (.crypt7 - around 8 files ) and all the rest.

I tried to find a KEY file but i didn't!

I tried to put back all these files on my new Galaxy S3 but its not working also!

Is there any other way? Or anyone can help me how to get the KEY File?

I was trying using WhatsappkeyExtract but it was not finding any file (noting that i downloaded the JAVA and all the details i saw in this thread: http://xdaforums.com/showthread.php?p=53112503)

Will appreciate any help!

Thanks,

Ralph
[Android Apps and Games] daniovipa:
Help!

Please help me to descryp some data bases I send u the data bases and you descryp. whatsapp extrac doesn't work for me. my e-mail is daniovipa@hotmail.es
[Android Apps and Games] vk4linux:
Unable to recover the DB --- getting Error :((

I have few msgstore-2014-06-19.1.db.crypt7 files which i want to Restore.

I have followed your instructions, downloaded the whatsapp_Xtract_2.1_2012-05-10-2, installed active python 32bit and also installed the install pyCrypto.

When I drag my db file it gives me the following Error.

trying to repair android database...

trying to decrypt android database...

Traceback (most recent call last):

File "C:\Users\vb057e\Downloads\Whatsapp_Xtract_V2.1_2012-05-10-2\whatsapp_xtr

act.py", line 2062, in <module>

main(sys.argv[1:])

File "C:\Users\vb057e\Downloads\Whatsapp_Xtract_V2.1_2012-05-10-2\whatsapp_xtr

act.py", line 995, in main

decoded = cipher.decrypt(open(options.infile,"rb").read())

File "C:\Users\vb057e\AppData\Roaming\Python\Python27\site-packages\Crypto\Cip

her\blockalgo.py", line 295, in decrypt

return self._cipher.decrypt(ciphertext)

ValueError: Input strings must be a multiple of 16 in length

Press any key to continue . . .

When i try to open the Console and issue the Command, I get the same error:

C:\Users\vb057e\Downloads\Whatsapp_Xtract_V2.1_2012-05-10-2>python whatsapp_xtra

ct.py msgstore-2014-06-19.1.db.crypt7

Python Version 2.x

Android mode!

trying to repair android database...

trying to decrypt android database...

Traceback (most recent call last):

File "whatsapp_xtract.py", line 2062, in <module>

main(sys.argv[1:])

File "whatsapp_xtract.py", line 995, in main

decoded = cipher.decrypt(open(options.infile,"rb").read())

File "C:\Users\vb057e\AppData\Roaming\Python\Python27\site-packages\Crypto\Cip

her\blockalgo.py", line 295, in decrypt

return self._cipher.decrypt(ciphertext)

Please Help -- its very very Important for me to Recover these DBs

ValueError: Input strings must be a multiple of 16 in length
[Android Apps and Games] NumberSeventeen:
Same problem here

I keep having the same error too..

If anyone could help me too that'd be great :)
[Android Apps and Games] TripCode:
Do you have the WhatsApp data files from the actual device? I don't just mean the database backups from the sd card. If you have the data files then you will have this file: "/data/data/com.whatsapp/files/key". You need the original key from your old device (the one that created the crypt7 files). You need this file to decrypt crypt7 files. If you don't have this file then you will not be able to decrypt

[MENTION=5875523]vk4linux[/MENTION] [MENTION=5922152]NumberSeventeen[/MENTION]

Whatsapp Xtract does not work with crypt7 files. You need to use another method to convert them to crypt format first.
[Android Apps and Games] RalphAC:
Whatsapp Decrypt

Hello!

Thank you for your reply!

Well i have all the files that were available on the phone.

I tried to find a .KEY file, but i never did! Not even in the data folders.

Note that the phone is not rooted!

Is there any other way to find it?

Do you think later on, it will be any way to decry pt without this key file?

Thank y ou
[Android Apps and Games] oile:
Root your phone, get the key file, and use Whatsapp Pc viewer v1.6 to decrypt database.

Then if you want the wonderful html, drag n drop the decrypted db in whatsapp xtract
[Android Apps and Games] yunior597:
Guys i only have the msgstore.db.crypt7 file... is the anyway i can read the conversations from that?
[Android Apps and Games] joe292:
Whatcrypt.com

In whatcrypt.com will a file uploaded for decryption be deleted from the server after the conversion has been completed?. Is it safe to use it?
[Android Apps and Games] alexman505:
Hi everyone!

How can I add some old messages from a file (e.g. txt, doc, html)? Can I create or rewrite a whatsapp's db? :)

I need to import old messages saved into gmail account with SMS backup+.

Please help me!
[Android Apps and Games] strawhat67:
Hi guys, please help me. I broke up with my girlfriend (about 2 month ago), but now we are together. She deleted on her phone our chat (almost all of our lovestory) so sad... and now is it possible to restore our messages? I have msgstore-2014-05-11.db.crypt5 file on my computer, (I even have all whatsapp folder), (I deleted our chat too, but I can restore it using Titanuim Backup). How can I restore our chat on her phone? (she has Galaxy S4, I have HTC EVO 3D) and of course we have different numbers. Sorry for my english. PLEASE HELP!!!
[Android Apps and Games] TripCode:
If you have access to the phone and it is on Android 4.0 or higher then you can obtain the key using this method. If it's below Android 4.0 then you will need to root the device. I would never say that there will never be a method to decrypt crypt7, but just don't expect a method to be made available anytime soon. In order for this to be possible, someone would have to hack WhatsApp's web server for the key generation codes. Without their hashing algorithm, decryption would take millions of years based on modern computational speeds and the cipher system being used.

No, not without the personal cipher key file that corresponds to your crypt7 file.

As the developer and owner of this site, I can tell you that your database uploads are NOT retained. When you upload your database or crypt file, the server will process your upload in memory ONLY and everything is done completely on the fly. If you do not trust the site then you can always download the WhatCrypt App instead to decrypt your database locally. The only thing the site does store is crypt6 and crypt7 cipher keys. This is purely for convenience, so that regular users do not have to keep reuploading them each time they want to decrypt or export.

WhatsApp unencrypted databases are just SQLite files. You can edit these with tools like SQLiteStudio.

You can restore .crypt5 file the first time you install WhatsApp, but only if the telephone number and gmail account on the device is the same as the one that generated the .crypt5 file. Alternatively, you could use the exporter at WhatsApp Export to export your messages to readable WhatsApp Style HTML so that you conserve them for prosperity. The gmail from the device is all that is required to export .crypt5 files. Good luck with your relationship and I hope it works out the second time around. :o
[Android Apps and Games] Mayn:
I've found a number of ways to extract the WA chats thanks to all the posts of this site. I really like the solution of oile in post 1136. That's the one I use so far, because pictures can be enlarged. The cherry on the cake however would be if the contacts could be given as names not as numbers, I guess this has something (if not all) to do with the WA.db file. Is there a way to use the "new" wa.db to get the names of the contacts?
[Android Apps and Games] periculum_sword:
Extracting Blackberry messages

Hi Guys

I'm new on the forum, and not a developer so please bear with me if I sound stupid.

I searched the thread but only found posts from early '2013 regarding this. I have db.bak files from a blackberry I used that I would like to extract. At the time mentioned above it seems not to have been possible to do this. The files have this name : ''messageStore.db.w.1404279508967.bak''.

Has anybody been able to do this yet for the blackberry files ?

Thanx in advance
[Android Apps and Games] jimmyjjohn:
Worked here!

Thanks a lot!

scarpe antinfortunistiche
[Android Apps and Games] pandupnw:
error message when encrypting whatsapp databases

when i try to encrypt the databases i got error message like this...how can i fix it and read the whatsapp databases?
[Android Apps and Games] sohel yadav:
trying to repair android database...

trying to decrypt android database...

decrypted database written to msgstore.plain.db

Error sqlite3.Error while reading chat #15425: database disk image is malformed

plz help
[Android Apps and Games] ipois0n1:
link not working
[Android Apps and Games] anish100:
Error While Decrypting

When I drag and drop the database file it's showing me a error that "input string must be multiple of 16 in length".

What to do now ? ?
[Android Apps and Games] rakshivet1994:
same problem........... please help me ztedd.. thanks in advance..

I am also facing the same problem :( i can not extract the msgstore.db.crypt7 from our procedure.. its telling the same as mentioned in these threads.. [IMG="it is showing like this..."]https://www.dropbox.com/s/s0zxrrrubsy5ag5/cmd.JPG[/IMG]
[Android Apps and Games] akss009:
Input string must be a multiple of 16 in length

Any solution to the error "Input string must be a multiple of 16 in length" yet ??
[Android Apps and Games] sunnyd71:
Trying to extract an unencrypted iPhone backup. I can see the messages fine through an SQL viewer but whatsapp Xtract 2.2 gives this error... Is there a newer version or any ideas?

py ChatStorage.sqlite
Python Version 2.x
iPhone mode!

*** METADATA PLIST DUMP ***

Plist ver.: 1
UUID: XXXXXXXXXXXXXXXXXXXXXXXXXXXX
ListsRequested: True
NSStoreModelVersionHashesVersion: 3
GroupsRequested: True
NSStoreModelVersionIdentifiers: ['2.11.5']
NSPersistenceFrameworkVersion: 479
NSStoreModelVersionHashes:
WAMessageWord: uI3vOPgV67W88Lb/5nQ7H+koKaxi7DrnyUwKRFVk05U=
WAGroupInfo: eSGZH+oIvii5cwqLHsBeWVbSQaWgoMSRfr27k1aBcgQ=
WABroadcast: aryOIMrXvcETzP0GUb2TAlCvB//b82ISmkfbcW5z7Nk=
WAGroupMember: Bixzg/JWorjHdKKG9ChcELk99mA9hKpKFCKvr37iW34=
WAMessage: PxbcN/a/eSEU1PaJ38KqxU/3pOD4maxxcWYdZFI1v+M=
WAChatSession: IPc7JcSLIDJEKbreSwyThbwrostnkKlkA0fTUuDvF40=
WAChatProperties: F4Z/TeC3UHNEjwQKYM7jaTKQUjuIIS1dGFGW9cRKyYg=
WAMediaItem: JHz80+O+pUeKqLqw9Ecy8gKXPhg3zgmymapluv8fueM=
WABlackListItem: tUA3p+9kSuWHiSPnaawz92JFG1ZbX1lYqXQ5LZKKJrI=
_NSAutoVacuumLevel: 2
PicturesInSync: True
DefaultWP: True
NSStoreType: SQLite

***************************

Traceback (most recent call last):
File "whatsapp_xtract.py", line 2453, in <module>
main(sys.argv[1:])
File "whatsapp_xtract.py", line 1667, in main
curr_message = Message(msgs["Z_PK"],msgs["ZISFROMME"],msgs["ZMESSAGEDATE"],m
sgs["ZTEXT"],contactfrom,msgs["ZMESSAGESTATUS"],media["ZMEDIALOCALPATH"],media["
ZMEDIAURL"],media["ZTHUMBNAILDATA"],ZXMPPTHUMBPATH,mediawatype,media["ZFILESIZE"
],media["ZLATITUDE"],media["ZLONGITUDE"],media["ZVCARDNAME"],media["ZVCARDSTRING
"])
IndexError: No item with that key

D:\Users\Sunny\Downloads\Whatsapp_Xtract_V2.2_2012-11-17>pause
[Android Apps and Games] Androidre:
To obtain key file...

WiFi rather usb/cable?

Hi to all, I need to know if there is a procedure that allows to connect the smartphone to pc, for backup of Whatsapp' key, using a wifi connection in common, rather than using the usb cable?

Thank you very much!

Best Regards
[Android Apps and Games] denisbara97:
Please help

i Have the key filed and i think i figure it out to get the messages but i want to download the pictures i deleted and whenever i click on a picture this is what shows up in a window , is this normal ? ...i just need those pictures(screenshots) they are very very very important and when i am on my android and i want to get the pictures i have in chat this is what i get please someone help (sorry for bad english) :(
[Android Apps and Games] JeffreyNijnatten:
Hi, I've merged 2 whatsapp database files and imported them back into whatsapp, but at my chatlist there are no dates showing from the newest database (the messages does have dates) is there a way to get the dates from the newest chat's too. (couse my old chats are on top right now)
[Android Apps and Games] jics91:
So, is this tool not working anymore as it used to? I mean, I had only to take the files from Databases and drag-and-drop on the exe to cmd it. Why I can not see changes on the main thread? Any way to this as simple as it was?
[Android Apps and Games] Mayn:
Just copy the Media folder from WhatsApp directory on your phone to the directory where you keep your .bat files.
[Android Apps and Games] Piyush P Jain:
Can anyone help me please, I extracted my whatsapp database, But I got a huge file of 77 mb.

I tried breaking it into 3 files, But I want to remove unwanted columns like “PK”, “Chat”, “Msg status”, “Media size”, “media type”. Can I?

I’m using notepad++ and I also want a fixed table layout where the “Msg content” column doesn’t stretch too and instead would wrap the cell content. Can anyone please help me out?
[Android Apps and Games] powerlukino:
I have a problem with this how to:

I have decrypted the old backup and the new one

THen I open one time sqlite database browser.

I noticed the last message of the old backup (number 31081)

Then I open the new backup, I deleted the first entry.

The I go to Execute SQL and execute the following SQL statement:

I writed: UPDATE messages set _id = (31081 + 1 + _id - 2)

and:

"

[*]3. Now all messages in the new database have the correct _id's.

Click on Save. Close all windows of SQLite Database Browser. "

And then what should I do to save it?

file\export?

or

save sql file? 0r file\save project?

Anyway, I do this, then I go to

sq lite compare:

and I can't find the two files named:

Left file: msgstore-2012-06-01.1.plain.db

Right file: msgstore-2012-06-07.1.plain.db

Help me, please
[Android Apps and Games] sagaroo7:
i have got this error

C:\Whatsapps>cmd.exe /t:A0 /k python whatsapp_xtract.py -h

Python Version 2.x

usage: whatsapp_xtract.py [-h] [-w WAFILE] [-o OUTFILE] infile

Converts a Whatsapp database to HTML.

positional arguments:

infile input 'msgstore.db' or 'msgstore.db.crypt' (Android)

or 'ChatStorage.sqlite' (iPhone) file to scan

optional arguments:

-h, --help show this help message and exit

-w WAFILE, --wafile WAFILE

optionally input 'wa.db' (Android) file to scan

-o OUTFILE, --outfile OUTFILE

optionally choose name of output file

C:\Whatsapps>python whatsapp_xtract.py msgstore.db.crypt6

Python Version 2.x

"msgstore.db.crypt6" file is not found!

C:\Whatsapps>python whatsapp_xtract.py msgstore.db.crypt5

Python Version 2.x

Android mode!

trying to repair android database...

trying to decrypt android database...

decrypted database written to msgstore5.plain.db

trying to repair decrypted android database...

Could not open database file. Guess it's not a valid Android or Iphone database

file.

C:\Whatsapps>^A
[Android Apps and Games] BunnyR:
HELP PLEASE - getting error - Input strings must be a multiple of 16 in length

C:\WhatsApp>python whatsapp_xtract.py msgstore.db.crypt7

Python Version 2.x

Android mode!

trying to repair android database...

trying to decrypt android database...

Traceback (most recent call last):

File "whatsapp_xtract.py", line 2062, in <module>

main(sys.argv[1:])

File "whatsapp_xtract.py", line 995, in main

decoded = cipher.decrypt(open(options.infile,"rb").read(

File "C:\Users\Samsung\AppData\Roaming\Python\Python27\sit

pher\blockalgo.py", line 295, in decrypt

return self._cipher.decrypt(ciphertext)

ValueError: Input strings must be a multiple of 16 in length